Skip to content

Instantly share code, notes, and snippets.

@bigeagle bigeagle/
Last active Aug 29, 2015

What would you like to do?
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
[ $? = 0 ] && rm $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.