[NetBehaviour] 1441220508

Pall Thayer pallthay at gmail.com
Wed Nov 4 00:00:47 CET 2015


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 <james at jwm-art.net> 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
> NetBehaviour at netbehaviour.org
> http://www.netbehaviour.org/mailman/listinfo/netbehaviour

-- 
P Thayer, Artist
http://pallthayer.dyndns.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.netbehaviour.org/pipermail/netbehaviour/attachments/20151103/ca8a9949/attachment.htm>


More information about the NetBehaviour mailing list