[sxiv] Add key handler for sxiv
This commit is contained in:
parent
dd9d7476e3
commit
fe66b43fbc
24
.config/sxiv/exec/key-handler
Executable file
24
.config/sxiv/exec/key-handler
Executable 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
|
Loading…
Reference in New Issue
Block a user