dotfiles-x1108b82e7
switch to nsxiv
+11 −0
1 file changed
- A .config/nsxiv/exec/key-handler +11 −0
| @@ -0,0 +1,11 @@ | |||
| 1 | + | #!/bin/sh | |
| 2 | + | ||
| 3 | + | while read file | |
| 4 | + | do | |
| 5 | + | case "$1" in | |
| 6 | + | "d") | |
| 7 | + | [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; | |
| 8 | + | "w") genwall $file;; | |
| 9 | + | "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";; | |
| 10 | + | esac | |
| 11 | + | done | |