myhome/.local/bin/screenshot
Marcin Woźniak c1e04f3cbf
Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-10-04 00:40:03 +02:00

8 lines
338 B
Plaintext
Executable File

FILE="/tmp/`date +%Y%m%d-%H.%M.%S.png`"
NAME=$(date +%s | sha256sum | base64 | head -c 20 ; echo)
gnome-screenshot -f "$FILE"
rsync -avz --delete $FILE -e "ssh -p 22" root@209.250.255.224:/var/www/yorune.pl/u/$NAME.png &&
echo -e "https://yorune.pl/u/$NAME.png" | xclip -selection clipboard && notify-send "Screenshot has been updated"