summaryrefslogtreecommitdiff
path: root/bin/guiscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-13 23:19:23 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-13 23:19:23 +0200
commit485c2d2ebaf238eb37a5650d364cb0031854774a (patch)
tree8b9c11c322c426e086b4172368c704920bb0d227 /bin/guiscripts
parent02da333eb51cc5f7cfc28e194681db0e5f59d485 (diff)
checkpoint
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-xbin/guiscripts/clipo4
-rwxr-xr-xbin/guiscripts/clipp4
-rwxr-xr-xbin/guiscripts/swclip (renamed from bin/guiscripts/cps)0
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo
index ebc9a25..e554c24 100755
--- a/bin/guiscripts/clipo
+++ b/bin/guiscripts/clipo
@@ -1,6 +1,6 @@
#!/bin/sh
-[ "$1" = "-p" ] && i='primary' j="-b"
+[ "$1" = "-p" ] && i='primary' j="-p"
if [ "$WAYLAND_DISPLAY" ]
then wl-paste -n "$1"
-else xsel -o $j
+else xsel -o ${j:--b}
fi
diff --git a/bin/guiscripts/clipp b/bin/guiscripts/clipp
index d545087..c3ee8f2 100755
--- a/bin/guiscripts/clipp
+++ b/bin/guiscripts/clipp
@@ -1,6 +1,6 @@
#!/bin/sh
-[ "$1" = "-p" ] && i='primary' j='-b'
+[ "$1" = "-p" ] && i='primary' j='-p'
if [ "$WAYLAND_DISPLAY" ]
then wl-copy -n $i
-else xsel $j
+else xsel ${j:--b}
fi
diff --git a/bin/guiscripts/cps b/bin/guiscripts/swclip
index 1cae135..1cae135 100755
--- a/bin/guiscripts/cps
+++ b/bin/guiscripts/swclip