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