From 08b82e766a8094c5b349b81f4818bcfc4704b01f Mon Sep 17 00:00:00 2001 From: krolyxon Date: Sat, 11 Feb 2023 11:13:21 +0530 Subject: [PATCH] switch to nsxiv --- .config/nsxiv/exec/key-handler | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .config/nsxiv/exec/key-handler 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