summaryrefslogtreecommitdiff
path: root/bin/guiscripts/clipo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/guiscripts/clipo')
-rwxr-xr-xbin/guiscripts/clipo7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo
index e554c24..866e99e 100755
--- a/bin/guiscripts/clipo
+++ b/bin/guiscripts/clipo
@@ -1,6 +1,9 @@
#!/bin/sh
-[ "$1" = "-p" ] && i='primary' j="-p"
+[ "$1" = "-p" ] &&
+ i='primary' ||
+ j="c"
+
if [ "$WAYLAND_DISPLAY" ]
then wl-paste -n "$1"
-else xsel -o ${j:--b}
+else xclip -o -sel ${j:-p}
fi