aboutsummaryrefslogtreecommitdiffstats
path: root/sl
blob: 4404797813c3b13558a7f65b10cdce88502b8202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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