X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.local%2Fbin%2Fscr;h=32e550c806bee61f89151d9011c44e4da544de0f;hb=a213c41c4b0d432e3a0c620c7d069a78855392f6;hp=184b5d87960b97bbd7b6a73b5ddd6dfb154763b8;hpb=9b4ab05e359bdf0994cb09ae063f414e8336fdcd;p=dotfiles.git diff --git a/x/.local/bin/scr b/x/.local/bin/scr index 184b5d8..32e550c 100755 --- a/x/.local/bin/scr +++ b/x/.local/bin/scr @@ -1,9 +1,6 @@ -#!/bin/bash -set -e -[[ "$#" -eq 1 ]] && CROP="$(slop -t 0 f '-crop %g')" -URL="$(date +%F_%H-%M-%S).png" -import -window root $CROP -quality 90 png:- | curl -s\ - -u "ftp@martlubbers.net:$(pass ftp.martlubbers.net/ftp@martlubbers.net)"\ - -T- "ftp://martlubbers.net/public_html/scr/$URL" -echo "https://martlubbers.net/scr/$URL" |\ - xclip -f -sel c | xclip -f | xargs -I{} notify-send {} +#!/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 {}