summaryrefslogtreecommitdiffstats
path: root/.config/sxiv
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-06-22 02:40:05 +0200
committerJokler <jokler@protonmail.com>2020-06-22 02:40:05 +0200
commit4d8318fe31ca295edf90db92a6b914f786ec27c4 (patch)
tree213fc3e9dbe5c243a1fd6a1efdf2ccf971f4df9d /.config/sxiv
parent05cc53b88258999f4d57a936bbd6897a862c51b5 (diff)
downloaddotfiles-4d8318fe31ca295edf90db92a6b914f786ec27c4.tar.gz
dotfiles-4d8318fe31ca295edf90db92a6b914f786ec27c4.zip
Add sxiv key-handler file
Diffstat (limited to '.config/sxiv')
-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