Krolyxon
Commit d75a5a0

Branches

Refs →

nsxivexeckey-handler

23 lines · 535 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3case "$1" in
4"C-c")
5 echo -n "$2" | xsel -i ;;
6"C-e")
7 urxvt -bg "#444" -fg "#eee" -sl 0 -title "$2" -e sh -c "exiv2 pr -q -pa '$2' | less" & ;;
8"C-g")
9 gimp "$2" & ;;
10"C-comma")
11 exec jpegtran -rotate 270 -copy all -outfile "$2" "$2" ;;
12"C-period")
13 exec jpegtran -rotate 90 -copy all -outfile "$2" "$2" ;;
14"C-slash")
15 exec jpegtran -rotate 180 -copy all -outfile "$2" "$2" ;;
16"C-less")
17 exec mogrify -rotate -90 "$2" ;;
18"C-greater")
19 exec mogrify -rotate +90 "$2" ;;
20"C-question")
21 exec mogrify -rotate 180 "$2" ;;
22esac
23