1
0
Fork 0
numbers/nsxiv/exec/key-handler

15 lines
386 B
Bash
Executable File

#!/usr/bin/env bash
while read -r file
do
case "$1" in
"b") feh --bg-tile "$file" & ;;
"m") mv "$file" "$HOME/img/rand" ;;
"r") convert -rotate 90 "$file" "$file" ;;
"R") convert -rotate -90 "$file" "$file" ;;
"f") convert -flop "$file" "$file" ;;
"y") printf %s "$file" | xclip -selection clipboard & ;;
"d") rm "$file" ;;
"g") krita "$file" & ;;
esac
done