diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-15 03:00:25 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-15 03:00:25 +0200 |
commit | 4914b43f642e2772a140a8f9b1f26b4e555ed88b (patch) | |
tree | fa665e469f8daa1f150d13411d0f8537a93e5355 /bin/guiscripts/clipp | |
parent | ad05cb18f03f3a97a918e090c38ba760147a0bb6 (diff) | |
parent | 2a9d0908651ac236855fa515e14a83bada3ad7f9 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts/clipp')
-rwxr-xr-x | bin/guiscripts/clipp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/guiscripts/clipp b/bin/guiscripts/clipp index c9e4f51..c3ee8f2 100755 --- a/bin/guiscripts/clipp +++ b/bin/guiscripts/clipp @@ -1,6 +1,6 @@ #!/bin/sh -[ "$1" = "-p" ] && arg='primary' +[ "$1" = "-p" ] && i='primary' j='-p' if [ "$WAYLAND_DISPLAY" ] -then wl-copy -n $1 -else xclip -selection "${arg:-clipboard}" -r +then wl-copy -n $i +else xsel ${j:--b} fi |