Last active
August 29, 2015 14:01
-
-
Save bigeagle/b7d67aad044cd8ae997b 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 | |
target="/tmp/$(mktemp -u scrot.XXXXX).png" | |
scrot $@ $target | |
editor=$(zenity --list --text "Choose how to open the picture" --radiolist --column "pick" --column "option" TRUE gthumb FALSE gimp) | |
if [ $? = 0 ]; then | |
$editor $target | |
fi | |
[ $? = 0 ] && rm $target | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment