diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-12 12:28:23 +0100 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-12 12:28:23 +0100 | 
| commit | a1afaeffef5caa2cf9e97b10ed0667a2b2df604e (patch) | |
| tree | 35dcb056118ea2d16558f7e8230f690341848c79 /bin/guiscripts/clipo | |
| parent | c94d4358ac75b13a58ffb3cfca8b91e91133c23d (diff) | |
checkpoint
Diffstat (limited to 'bin/guiscripts/clipo')
| -rwxr-xr-x | bin/guiscripts/clipo | 7 | 
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  | 
