From 1c2acdc985112c7e8c99829a0784a5556b1d0f52 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 11 Sep 2024 20:56:38 +0000 Subject: [PATCH] add flameshot client example --- README.md | 3 ++- contrib/README.md | 3 +++ contrib/flameshot.sh | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 contrib/flameshot.sh diff --git a/README.md b/README.md index cb62b8bb..c1f07c74 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + ### πŸ’ΎπŸŽ‰ copyparty @@ -1887,6 +1887,7 @@ interact with copyparty using non-browser clients * [rclone](https://rclone.org/) as client can give ~5x performance, see [./docs/rclone.md](docs/rclone.md) * sharex (screenshot utility): see [./contrib/sharex.sxcu](contrib/#sharexsxcu) + * and for screenshots on linux, see [./contrib/flameshot.sh](./contrib/flameshot.sh) * contextlet (web browser integration); see [contrib contextlet](contrib/#send-to-cppcontextletjson) diff --git a/contrib/README.md b/contrib/README.md index 01a175f2..ad4de004 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -19,6 +19,9 @@ * the `act:bput` thing is optional since copyparty v1.9.29 * using an older sharex version, maybe sharex v12.1.1 for example? dw fam i got your back πŸ‘‰πŸ˜ŽπŸ‘‰ [`sharex12.sxcu`](sharex12.sxcu) +### [`flameshot.sh`](flameshot.sh) +* takes a screenshot with [flameshot](https://flameshot.org/) on Linux, uploads it, and writes the URL to clipboard + ### [`send-to-cpp.contextlet.json`](send-to-cpp.contextlet.json) * browser integration, kind of? custom rightclick actions and stuff * rightclick a pic and send it to copyparty straight from your browser diff --git a/contrib/flameshot.sh b/contrib/flameshot.sh new file mode 100755 index 00000000..89bd8afc --- /dev/null +++ b/contrib/flameshot.sh @@ -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