Adds sxiv settings

This commit is contained in:
Jonathan Hodgson 2019-01-07 21:00:38 +00:00
parent ade2b2d5cd
commit b05f18aeea

18
sxiv/exec/key-handler Executable file
View file

@ -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