From 713f9df659044d01091cacb9491492b46d844c79 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 7 Jan 2019 21:00:38 +0000 Subject: [PATCH] Adds sxiv settings --- sxiv/exec/key-handler | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 sxiv/exec/key-handler diff --git a/sxiv/exec/key-handler b/sxiv/exec/key-handler new file mode 100755 index 00000000..e1967c94 --- /dev/null +++ b/sxiv/exec/key-handler @@ -0,0 +1,18 @@ +#!/bin/sh +while read file +do + case "$1" in + "greater" ) + convert -rotate 90 "$file" "$file" ;; + "less") + convert -rotate 270 "$file" "$file" ;; + "y") + echo -n "$file" | xclip -selection clipboard ;; + "g") + gimp "$file" & disown ;; + "G") + optirun gimp "$file" & disown ;; + * ) + notify-send "$1" + esac +done