diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-20 19:04:05 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-20 19:04:05 +0530 |
commit | 30357221e6de38d63ea359692a8d3cfba3d14bd7 (patch) | |
tree | a63dfeda45cf83367c191498b508c13972c0c75c /.scripts | |
parent | c9cde74ca65157355820ca760c9b67f5e71ee468 (diff) |
fixing sscp xclip on empty var & correct mapping in zathurarc
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/sscp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/sscp b/.scripts/sscp index e6760be..2cc85f3 100755 --- a/.scripts/sscp +++ b/.scripts/sscp @@ -2,4 +2,5 @@ latestss=$(ls -t $HOME/pix/Screenshots/ | head -n10 | dmenu -l 10) -xclip -selection clipboard -t image/png -i $HOME/pix/Screenshots/$latestss +[ -z $latestss ] && echo "Nothing selected...quitting" && exit \ +|| xclip -selection clipboard -t image/png -i $HOME/pix/Screenshots/$latestss |