Wouldn't it be funny if someone modified this to take screenshots every couple of seconds and upload them to a secret ftp server?
On Tue, Nov 3, 2015 at 5:56 PM James Morris <[email protected]> wrote: > #!/bin/bash > # shoot - screenshot script. > # intended usage: bind to two keyboard shortcuts. > # for the second shortcut pass the option 'select' > # (without quotes) to allow user to draw area to shoot. > # requires: maim - screenshot application > # notify-send - to provide user assurance > > DIR="${HOME}/Pictures/Screenshots" > FN="$(date '+%Y%m%d-%H%M%S').png" > > if [ "'$1'" == "'select'" ]; then > maim -s --nokeyboard "$DIR/$FN" > else > maim "$DIR/$FN" > fi > > if [ "$?" -gt 0 ]; then > notify-send -u critical -t 500 "Screenshot FAIL $FN" > else > notify-send -t 350 "Wrote screenshot ${FN}" > fi > _______________________________________________ > NetBehaviour mailing list > [email protected] > http://www.netbehaviour.org/mailman/listinfo/netbehaviour -- P Thayer, Artist http://pallthayer.dyndns.org
_______________________________________________ NetBehaviour mailing list [email protected] http://www.netbehaviour.org/mailman/listinfo/netbehaviour
