From 466ff6507c3a57c11ed0ca0d31a1a4ff35e793a6 Mon Sep 17 00:00:00 2001 From: urosm Date: Sun, 29 Sep 2024 13:34:46 +0200 Subject: [PATCH] Introduce a custom vis-clipboard script --- .local/bin/vis-clipboard | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/vis-clipboard diff --git a/.local/bin/vis-clipboard b/.local/bin/vis-clipboard new file mode 100755 index 0000000..099bcea --- /dev/null +++ b/.local/bin/vis-clipboard @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in + --copy) wl-copy -t TEXT 2>/dev/null;; + --paste) wl-paste --no-newline -t TEXT;; + *) printf "%s [--copy|--paste]\n" "$(basename "$0")" ;; +esac