diff options
Diffstat (limited to '.config/nsxiv/exec')
| -rwxr-xr-x | .config/nsxiv/exec/key-handler | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler new file mode 100755 index 0000000..491b894 --- /dev/null +++ b/.config/nsxiv/exec/key-handler @@ -0,0 +1,11 @@ +#!/bin/sh + +while read file +do + case "$1" in + "d") + [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; + "w") setwall -p $file;; + "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";; + esac +done |
