added screenshot script to repo
[dotfiles.git] / misc_binaries / .local / bin / scr
1 #!/bin/bash
2 set -e
3 f=$(scrot -s -e 'echo $f')
4 curl -s \
5 -u "ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net)"\
6 -T $f ftp://martlubbers.net/public_html/scr/$f
7 echo http://martlubbers.net/scr/$f | xclip
8 rm -v $f
9 notify-send http://martlubbers.net/scr/$f