f34ccaf027725465ba02d9d9af2c7900ab25317c
[dotfiles.git] / x / .local / bin / scr
1 #!/bin/sh -e
2 [ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")"
3 URL="scr/$(date +%F_%H-%M-%S).png"
4 import -window root $CROP png:- | \
5 ssh helheim cat \> /var/www/martlubbers.net/$URL
6 echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}