summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/nsxiv/exec/key-handler9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler
new file mode 100755
index 0000000..7539f88
--- /dev/null
+++ b/.config/nsxiv/exec/key-handler
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+while read -r file
+do
+ case "$1" in
+ "C-d") rm "$file" ;;
+ "C-c") cat "$file" | xclip -sel c -t image/png ;;
+ esac
+done