home/private_dot_local/script/executable_shot

6 lines
259 B
Plaintext
Raw Normal View History

2024-08-12 08:56:57 +00:00
#!/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