This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
2019-04-30 04:09:33 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
while read -r file
|
|
|
|
do
|
|
|
|
case "$1" in
|
2020-10-06 00:07:59 +00:00
|
|
|
"b") hsetroot -fill "$file" & ;;
|
2020-05-05 22:22:57 +00:00
|
|
|
"m") mv "$file" "$HOME/img/rand" ;;
|
2019-04-30 04:09:33 +00:00
|
|
|
"r") convert -rotate 90 "$file" "$file" ;;
|
|
|
|
"R") convert -rotate -90 "$file" "$file" ;;
|
|
|
|
"f") convert -flop "$file" "$file" ;;
|
2020-08-28 16:11:06 +00:00
|
|
|
"y") printf %s "$file" | xclip -selection clipboard & ;;
|
2019-04-30 04:09:33 +00:00
|
|
|
"d") rm "$file" ;;
|
2020-05-05 22:22:57 +00:00
|
|
|
"g") krita "$file" & ;;
|
2019-04-30 04:09:33 +00:00
|
|
|
esac
|
2020-08-28 16:11:06 +00:00
|
|
|
done
|