summaryrefslogtreecommitdiff
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
parentc9cde74ca65157355820ca760c9b67f5e71ee468 (diff)
fixing sscp xclip on empty var & correct mapping in zathurarc
-rw-r--r--.config/zathura/zathurarc4
-rwxr-xr-x.scripts/sscp3
2 files changed, 4 insertions, 3 deletions
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
index 25673e6..002b393 100644
--- a/.config/zathura/zathurarc
+++ b/.config/zathura/zathurarc
@@ -13,8 +13,8 @@ map J zoom in
map K zoom out
#map u =
-map H pg down
-map L pg up
+map H previous
+map L next
map <C-n> search forward
map <C-b> search backward
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