From 30357221e6de38d63ea359692a8d3cfba3d14bd7 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 20 Aug 2022 19:04:05 +0530 Subject: fixing sscp xclip on empty var & correct mapping in zathurarc --- .scripts/sscp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.scripts') 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 -- cgit v1.2.3