From 27970ff5278649a0a966f985919f3568d25d9d26 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 20 Jun 2016 16:30:48 +0200 Subject: [PATCH] update scr script --- x/.local/bin/scr | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/x/.local/bin/scr b/x/.local/bin/scr index 184b5d8..dfe5edd 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 "https://martlubbers.net/$URL" | xclip -f | xargs -I{} notify-send {} -- 2.20.1