summaryrefslogtreecommitdiffstats
path: root/.config/sxiv/exec/key-handler
diff options
context:
space:
mode:
Diffstat (limited to '.config/sxiv/exec/key-handler')
-rwxr-xr-x.config/sxiv/exec/key-handler13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..432d1e0
--- /dev/null
+++ b/.config/sxiv/exec/key-handler
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+while read file
+do
+ case "$1" in
+ "C-d")
+ rm "$file" ;;
+ "C-r")
+ convert -rotate 90 "$file" "$file" ;;
+ "C-c")
+ echo -n "$file" | xclip -selection clipboard ;;
+ esac
+done