summaryrefslogtreecommitdiff
path: root/bin/guiscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-31 14:31:32 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-31 14:31:32 +0100
commita98ae6bd5a1c7e2d278c5df2b927c0a5427141d0 (patch)
treec14a0e2602ea648a5b76948b17af727846bf1428 /bin/guiscripts
parentff3a8bb2d62f5a7e1759eb3d9e0834f4396e833d (diff)
turn aliases into scripts
This allows for better integration, and makes it possible to call these from other programs, such as window managers, ...
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-xbin/guiscripts/clipo4
-rwxr-xr-xbin/guiscripts/clipp4
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo
new file mode 100755
index 0000000..e3ae714
--- /dev/null
+++ b/bin/guiscripts/clipo
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ "$WAYLAND_DISPLAY" ] &&
+ wl-paste -n ||
+ xclip -o -selection clipboard -r
diff --git a/bin/guiscripts/clipp b/bin/guiscripts/clipp
new file mode 100755
index 0000000..538f69b
--- /dev/null
+++ b/bin/guiscripts/clipp
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ "$WAYLAND_DISPLAY" ] &&
+ wl-copy -n ||
+ xclip -selection clipboard -r