dotfiles/bin/.bin/screenshot-upload
2025-04-21 12:10:40 -03:00

7 lines
286 B
Bash
Executable file

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