[sxiv] Add key handler for sxiv

This commit is contained in:
2021-03-10 13:14:01 +01:00
parent dd9d7476e3
commit fe66b43fbc

24
.config/sxiv/exec/key-handler Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/fish
while read file
set -g FILES "$file" $FILES
end
switch "$argv[1]"
case "d"
trash $FILES
case "D"
rm $FILES
case "g"
gimp $FILES
case "r"
echo ROTATE
echo $FILES
for f in $FILES
convert -rotate 90 "$f" "$f"
end
case "R"
for f in $FILES
convert -rotate 270 "$f" "$f"
end
end