From 6e069a03f5cc995d85f2293495c208a0994b0275 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 26 Apr 2015 20:55:12 +0200 Subject: Add (s)sl sl and ssl are scrot wrappers that scp the screenshots to theos and returns an https URL --- sl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 sl (limited to 'sl') diff --git a/sl b/sl new file mode 100755 index 0000000..4404797 --- /dev/null +++ b/sl @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -o errexit + +id=$(mktemp /tmp/XXXXXXXXXX).png +host='theos.kyriasis.com' +url="https://$host/~kyrias/s/$(basename $id)" + +scrot "$id" +scp -q "$id" "$host":public_html/s/ +rm "$id" + +printf "URL: %s\n" "$url" +printf "%s\n" "$url" | xclip -selection clipboard -- cgit v1.2.3-70-g09d2