diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-09 18:21:35 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-09 18:21:35 +0200 |
commit | 02da333eb51cc5f7cfc28e194681db0e5f59d485 (patch) | |
tree | 8a6c6a629acceb22eb481ea97341c9f2a0f6cd9c /bin/guiscripts | |
parent | 1db03774f313f1d740cda3f7e4dbc05a50c75d15 (diff) |
checkpoint
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/clipo | 4 | ||||
-rwxr-xr-x | bin/guiscripts/clipp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo index 078cc13..ebc9a25 100755 --- a/bin/guiscripts/clipo +++ b/bin/guiscripts/clipo @@ -1,6 +1,6 @@ #!/bin/sh -[ "$1" = "-p" ] && arg='primary' +[ "$1" = "-p" ] && i='primary' j="-b" if [ "$WAYLAND_DISPLAY" ] then wl-paste -n "$1" -else xclip -o -selection "${arg:-clipboard}" -r +else xsel -o $j fi 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 |