Files
scripts/screenshot_to_url_remote.sh
2018-08-28 13:50:46 +03:00

9 lines
412 B
Bash
Executable File

#!/bin/bash
file=$(date +"%Y-%m-%d-%T.png")
maim -s "/tmp/$file" -b 1
# link=$(proxychains4 curl -s -F file=@"/tmp/$file" https://www.smirky.net/upload/upload.php | grep https | cut -d\" -f2 2>/dev/null)
link=$(curl -s -F file=@"/tmp/$file" https://www.smirky.net/upload/upload.php | grep https | cut -d\" -f2 2>/dev/null)
rm -f "/tmp/$file"
notify-send "$link"
printf "%s" "$link" | xclip -selection clip-board