aboutsummaryrefslogtreecommitdiff
path: root/.config/sxiv/exec/key-handler
blob: 42b7c1a4ff46d7c8a2e7fbd58bef9fc4b026bc40 (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-d")
                mv "$file" ~/.trash ;;
        "C-r")
                convert -rotate 90 "$file" "$file" ;;
        "C-c")
                echo -n "$file" | xclip -selection clipboard ;;
        "C-w")
                echo "$file" && xwallpaper --zoom "$file" ;;
        esac
done