diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-02-11 11:13:21 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-02-11 11:13:21 +0530 |
| commit | 08b82e766a8094c5b349b81f4818bcfc4704b01f (patch) | |
| tree | 2fbed8949c5545ff719a9289658e1dc68cc6bf8e /.config/nsxiv/exec/key-handler | |
| parent | c30799526a302c39ba4a57415cbf6c8be73491f0 (diff) | |
switch to nsxiv
Diffstat (limited to '.config/nsxiv/exec/key-handler')
| -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..d776d04 --- /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") genwall $file;; + "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";; + esac +done |
