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