#!/usr/bin/env bash
file=/tmp/$(date "+%Y%m%d-%H%M%S")_screenshot.png

grim -g "$(slurp)" "$file" &&
	satty --filename "$file" --fullscreen &&
	yad --title="Upload?" --text="Upload image?" --image="dialog-question" --default-cancel &&
	curl -F "file=@$file" https://drop.mz.uy | xargs xdg-open
