blob: 543f7b3a4aa2f608bb4630c4c1c4f394aca0a874 (
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 -s "$id"
scp -q "$id" "$host":public_html/s/
rm "$id"
printf "URL: %s\n" "$url"
printf "%s\n" "$url" | xclip -selection clipboard
|