diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:54:54 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:54:54 +0200 |
commit | 102e7d997a40a7215b10686ce2b0d006d5a97c2e (patch) | |
tree | 86449e1b494d7c209563f6870a5c7493528434aa /bin/guiscripts/dmclip | |
parent | a58ae56e98a8d9fcbe7fc7beaa976a4d164ee99a (diff) | |
parent | 0403da37e183e41d3b949b473038806059130815 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts/dmclip')
-rwxr-xr-x | bin/guiscripts/dmclip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/guiscripts/dmclip b/bin/guiscripts/dmclip index a1ca634..cd5c928 100755 --- a/bin/guiscripts/dmclip +++ b/bin/guiscripts/dmclip @@ -11,16 +11,16 @@ NotImage () { selection="$(echo "primary\nclipboard\nswap" | dmenu -l 1 -g 3 -p "selection:")" -if [[ "$selection" == "swap" ]] +if [ "$selection" = "swap" ] then clipboard="$(xclip -o)" xclip -o | xclip -sel c echo -n "$clipboard" | xclip -sel c exit -elif [ "$selection" == "" ] +elif [ "$selection" = "" ] then exit 1 -elif [ "$selection" == "primary" ] +elif [ "$selection" = "primary" ] then selection2="clipboard" else |