15 lines
378 B
Bash
Executable File
15 lines
378 B
Bash
Executable File
#!/usr/bin/env bash
|
|
while read -r file
|
|
do
|
|
case "$1" in
|
|
"b") setbg "$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
|