aboutsummaryrefslogtreecommitdiff
path: root/sxiv
diff options
context:
space:
mode:
Diffstat (limited to 'sxiv')
-rwxr-xr-xsxiv/.config/sxiv/exec/key-handler18
1 files changed, 18 insertions, 0 deletions
diff --git a/sxiv/.config/sxiv/exec/key-handler b/sxiv/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..ea57b25
--- /dev/null
+++ b/sxiv/.config/sxiv/exec/key-handler
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+while read file
+do
+ case "$1" in
+ "r")
+ convert -rotate 90 "$file" "$file" ;;
+ "c")
+ echo -n "$file" | xclip -selection clipboard ;;
+ "C")
+ echo -n "${file##*/}" | xclip -selection clipboard ;;
+ "w")
+ cp "$file" ~/.config/wall1.jpg && wal -c -i "$file" && sudo make -C ~/st/ clean install & ;;
+ "b")
+ st -e cp "$file" ~/.config/wall1.jpg && wal -c -i "$file" && sudo make -C ~/st/ clean install & ;;
+ esac
+done
+