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