2018-02-03 18:34:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2018-08-10 20:20:11 +00:00
|
|
|
FILEPATH="$HOME/Screenshots/$(date +%y%m%d-%H%M%S).png"
|
|
|
|
|
|
|
|
maim -s -b 2 -c 0.5,0.5,0.5,0.6 ${FILEPATH}
|
|
|
|
|
|
|
|
basename=$(basename ${FILEPATH})
|
2018-02-03 18:34:36 +00:00
|
|
|
|
|
|
|
# Full path to bypass ssh-agent
|
2018-08-10 20:20:11 +00:00
|
|
|
/usr/bin/scp -i ~/.ssh/screenshoter ${FILEPATH} screenshots@web.spritsail.io:~/${basename}
|
2018-02-03 18:34:36 +00:00
|
|
|
|
2018-08-10 20:20:11 +00:00
|
|
|
echo "https://admnt.pw/i/${basename}" | xclip -r -selection c
|
2018-02-03 18:34:36 +00:00
|
|
|
|
2018-08-10 20:20:11 +00:00
|
|
|
notify-send -t 1500 "Screenshot: Upload Complete!" "https://admnt.pw/i/${basename}"
|