Flameshot (Linux) Script

Using flameshot on linux you can pipe raw image data to a file and upload it using cURL. Use the uploader.sh from here. The script below saves the raw image to a file with the date.

DATE=$(date '+%h_%Y_%d_%I_%m_%S.png'); # create DATE variable for the below commands
flameshot gui -r > ~/pictures/$DATE; # open flameshot gui and returns raw image with the -r flag then saved to ~/pictures/$DATE
./upload.sh ~/pictures/$DATE # uses the upload.sh from the the cURL example & also copies to clipboard if you used the clipboard one.