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