Archived
1
0
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.
hexagons/.config/sxiv/exec/key-handler

14 lines
360 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
while read -r file
do
case "$1" in
"b") setbg "$file" & ;;
"m") mv "$file" "$HOME/Pictures/rand" ;;
"r") convert -rotate 90 "$file" "$file" ;;
"R") convert -rotate -90 "$file" "$file" ;;
"f") convert -flop "$file" "$file" ;;
"y") echo -n "$file" | xsel -i & ;;
"d") rm "$file" ;;
"g") gimp "$file" & ;;
esac
done