Krolyxon
Commit 58b4a1e

Branches

Refs →

nsxivexeckey-handler

21 lines · 437 B · Bourne Again Shell (bash)

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