#!/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