aboutsummaryrefslogtreecommitdiff
path: root/sxiv
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-04-26 18:25:11 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-04-26 18:25:11 +0000
commita13339e0e99118870498ecfdea22292c7e267eb2 (patch)
tree127c8a7b88ca6b5eddc7ec567122ec129c72799a /sxiv
dotfiles with stow structure
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
+