aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-25 23:47:28 +0300
committereug-vs <eug-vs@keemail.me>2021-04-25 23:47:28 +0300
commitc63df9b6409b227b959a2d5989390e837a995bb8 (patch)
tree59b276f00097b4dd98b61a7ce89dd5265028a42b /.config
parent0b0bab8608c7bd885dae2433f7bac39e779988bd (diff)
downloaddotfiles-c63df9b6409b227b959a2d5989390e837a995bb8.tar.gz
feat(sxiv): add key-handler
Diffstat (limited to '.config')
-rwxr-xr-x.config/sxiv/exec/key-handler15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..42b7c1a
--- /dev/null
+++ b/.config/sxiv/exec/key-handler
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+while read file
+do
+ case "$1" in
+ "C-d")
+ mv "$file" ~/.trash ;;
+ "C-r")
+ convert -rotate 90 "$file" "$file" ;;
+ "C-c")
+ echo -n "$file" | xclip -selection clipboard ;;
+ "C-w")
+ echo "$file" && xwallpaper --zoom "$file" ;;
+ esac
+done