home/private_dot_local/script/executable_shot
2024-08-12 03:56:57 -05:00

6 lines
259 B
Bash

#!/bin/sh
OUTPUT_FILENAME="/home/a/shots/$(date '+%Y-%m-%d_%H:%M:%S').png"
scrot --freeze -F $OUTPUT_FILENAME -s
curl https://put.gay -H "authorization: $PASTE_TOKEN" --silent -F "file=@$OUTPUT_FILENAME;headers=\"bucket: shot\"" | xclip -selection clipboard