update submodules, several small changes
[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 ygdrassil ssh martlubbers.net "cat \> public_html/$URL"
6 echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}