aboutsummaryrefslogtreecommitdiffstats
path: root/sl
diff options
context:
space:
mode:
Diffstat (limited to 'sl')
-rwxr-xr-xsl14
1 files changed, 14 insertions, 0 deletions
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