screenshot-upload 294 B

1234567
  1. #!/usr/bin/env bash
  2. file=/tmp/$(date "+%Y%m%d-%H%M%S")_screenshot.png
  3. grim -g "$(slurp)" "$file" &&
  4. satty --filename "$file" --fullscreen &&
  5. yad --title="Upload?" --text="Upload image?" --image="dialog-question" --default-cancel &&
  6. curl -F "file=@$file" https://drop.mz.uy | xargs xdg-open