Created
September 26, 2015 22:14
-
-
Save matoken/9e315d2ed10bab19f7c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$1" in | |
"root" ) | |
import -quality 100 -window root ~/Pictures/`date +%Y%m%d_%H:%m:%S-$$.jpg` | |
;; | |
"window" ) | |
xwininfo |grep '^xwininfo: Window id:' | awk '{print $4}' | xargs -I{} import -quality 100 -window {} ~/Pictures/`date +%Y%m%d_%H:%m:%S-$$.jpg` | |
;; | |
"area" ) | |
import -quality 100 ~/Pictures/`date +%Y%m%d_%H:%m:%S-$$.jpg` | |
;; | |
esac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment