summaryrefslogtreecommitdiff
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-handler16
1 files changed, 16 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..0d25a50
--- /dev/null
+++ b/.config/sxiv/exec/key-handler
@@ -0,0 +1,16 @@
+#!/bin/sh
+while read file
+do
+ case "$1" in
+ "d")
+ trash-put "$file";;
+ "r")
+ convert -rotate 90 "$file" "$file" ;;
+ "c")
+ echo -n "$file" | xclip -selection clipboard ;;
+ "s")
+ setbg "$file";;
+ "i")
+ convert $file -channel RGB -negate /tmp/output.png && sxiv -f /tmp/output.png ;;
+ esac
+done