Skip to content

Instantly share code, notes, and snippets.

@bigeagle
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigeagle/b7d67aad044cd8ae997b to your computer and use it in GitHub Desktop.
Save bigeagle/b7d67aad044cd8ae997b to your computer and use it in GitHub Desktop.
#!/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