X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.local%2Fbin%2Fscr;h=c54bf98a5b340b23387b5e2046045e036ccaff1f;hb=HEAD;hp=f34ccaf027725465ba02d9d9af2c7900ab25317c;hpb=4b436b147222f2e4b6be9be24e63114030ffdfd1;p=dotfiles.git diff --git a/x/.local/bin/scr b/x/.local/bin/scr index f34ccaf..c54bf98 100755 --- a/x/.local/bin/scr +++ b/x/.local/bin/scr @@ -1,6 +1,5 @@ #!/bin/sh -e -[ "$#" -eq 1 ] && CROP="$(slop -t 0 -f "-crop %g")" +[ "$#" -ne 1 ] && CROP="" || CROP="-window root" URL="scr/$(date +%F_%H-%M-%S).png" -import -window root $CROP png:- | \ - ssh helheim cat \> /var/www/martlubbers.net/$URL -echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {} +import $CROP png:- | ssh helheim2 cat \> /var/www/martlubbers.net/$URL +echo "http://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {}