diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-06 09:29:30 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-06 09:29:30 +0100 |
commit | 61d5bb429488794ac178a47fa73c38322aa14c04 (patch) | |
tree | 6cd7d3510f999701b5e2f7fe10b0f790cd868243 /bin/guiscripts/clipo | |
parent | af9608a3a98f0ab4217da80b8d478810505801bc (diff) | |
parent | 694813e05187b5ccf144425c4bad6f5ab4f92234 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts/clipo')
-rwxr-xr-x | bin/guiscripts/clipo | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo index e3ae714..39994f9 100755 --- a/bin/guiscripts/clipo +++ b/bin/guiscripts/clipo @@ -1,4 +1,6 @@ #!/bin/sh -[ "$WAYLAND_DISPLAY" ] && - wl-paste -n || - xclip -o -selection clipboard -r +[ "$1" = "-p" ] && arg='primary' +if [ "$WAYLAND_DISPLAY" ] +then wl-paste -n ${1} +else xclip -o -selection "${arg:-clipboard}" -r +fi |