summaryrefslogtreecommitdiff
path: root/bin/guiscripts/clipp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/guiscripts/clipp')
-rwxr-xr-xbin/guiscripts/clipp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/guiscripts/clipp b/bin/guiscripts/clipp
index c9e4f51..d545087 100755
--- a/bin/guiscripts/clipp
+++ b/bin/guiscripts/clipp
@@ -1,6 +1,6 @@
#!/bin/sh
-[ "$1" = "-p" ] && arg='primary'
+[ "$1" = "-p" ] && i='primary' j='-b'
if [ "$WAYLAND_DISPLAY" ]
-then wl-copy -n $1
-else xclip -selection "${arg:-clipboard}" -r
+then wl-copy -n $i
+else xsel $j
fi