Skip to content

Instantly share code, notes, and snippets.

@bigeagle bigeagle/myscrot.sh
Last active Aug 29, 2015

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.