#!/bin/bash set -e f=$(scrot -s -e 'echo $f') curl -s \ -u "ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net)"\ -T $f ftp://martlubbers.net/public_html/scr/$f echo http://martlubbers.net/scr/$f | xclip rm -v $f notify-send http://martlubbers.net/scr/$f