aboutsummaryrefslogtreecommitdiffstats
path: root/bin/key-handler.sh
blob: 360c36aee4c1d5717260f1a087d72118446b4c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
while read file
do
        case "$1" in
        "C-l")
                convert -rotate 270 "$file" "$file" ;;
        "C-r")
                convert -rotate 90 "$file" "$file" ;;
        "C-c")
                echo -n "$file" \
                  | xclip -i -selection clipboard -f \
                  | xclip -i -selection primary ;;
        esac
done