add flameshot client example

This commit is contained in:
ed
2024-09-11 20:56:38 +00:00
parent 4e75534ef8
commit 1c2acdc985
3 changed files with 19 additions and 1 deletions

14
contrib/flameshot.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
# take a screenshot with flameshot and send it to copyparty;
# the image url will be placed on your clipboard
password=wark
url=https://a.ocv.me/up/
filename=$(date +%Y-%m%d-%H%M%S).png
flameshot gui -s -r |
curl -T- $url$filename?pw=$password |
tail -n 1 |
xsel -ib