#!/bin/sh -e [ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")" URL="scr/$(date +%F_%H-%M-%S).png" import -window root $CROP png:- | \ ssh ygdrassil ssh martlubbers.net "cat \> public_html/$URL" echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {}