summaryrefslogtreecommitdiff
path: root/.config/sxiv
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-04-29 19:29:28 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-04-29 19:29:28 +0530
commita5575436eb7376e896803bd559074681c1df7192 (patch)
tree894564ed43897ce2a718955b64c666eefa5d0877 /.config/sxiv
parentc369e4a068302e94146832912e6eb4fb716ab2ae (diff)
sxiv key-handler invert color, myipc, replace folder name
Diffstat (limited to '.config/sxiv')
-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