summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-20 19:04:05 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-20 19:04:05 +0530
commit30357221e6de38d63ea359692a8d3cfba3d14bd7 (patch)
treea63dfeda45cf83367c191498b508c13972c0c75c /.scripts
parentc9cde74ca65157355820ca760c9b67f5e71ee468 (diff)
fixing sscp xclip on empty var & correct mapping in zathurarc
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/sscp3
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