diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/key-handler.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/key-handler.sh b/bin/key-handler.sh new file mode 100755 index 0000000..360c36a --- /dev/null +++ b/bin/key-handler.sh @@ -0,0 +1,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 + |
