mirror of
https://github.com/Adam-Ant/dotfiles
synced 2024-11-05 09:06:23 +00:00
12 lines
312 B
Bash
Executable File
12 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
basename=$(basename ${1})
|
|
|
|
# Full path to bypass ssh-agent
|
|
/usr/bin/scp -i ~/.ssh/screenshoter ${1} screenshots@srv2.cwgaming.co.uk:~/${basename}
|
|
|
|
echo "https://admnt.cf/i/${basename}" | xclip -r -selection c
|
|
|
|
notify-send -t 1500 "Screenshot: Upload Complete!" "https://admnt.cf/i/${basename}"
|