Krolyxon
Commit 0e81802

Branches

Refs →

nsxivexeckey-handler

19 lines · 403 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3case "$1" in
4"C-g")
5 gimp "$2" & ;;
6"C-comma")
7 exec jpegtran -rotate 270 -copy all -outfile "$2" "$2" ;;
8"C-period")
9 exec jpegtran -rotate 90 -copy all -outfile "$2" "$2" ;;
10"C-slash")
11 exec jpegtran -rotate 180 -copy all -outfile "$2" "$2" ;;
12"C-less")
13 exec mogrify -rotate -90 "$2" ;;
14"C-greater")
15 exec mogrify -rotate +90 "$2" ;;
16"C-question")
17 exec mogrify -rotate 180 "$2" ;;
18esac
19