Skip to content

Commit 1c2acdc

Browse files
committed
add flameshot client example
1 parent 4e75534 commit 1c2acdc

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="docs/logo.svg" width="250" align="right"/>
1+
<img src="https://github.com/9001/copyparty/raw/hovudstraum/docs/logo.svg" width="250" align="right"/>
22

33
### 💾🎉 copyparty
44

@@ -1887,6 +1887,7 @@ interact with copyparty using non-browser clients
18871887
* [rclone](https://rclone.org/) as client can give ~5x performance, see [./docs/rclone.md](docs/rclone.md)
18881888
18891889
* sharex (screenshot utility): see [./contrib/sharex.sxcu](contrib/#sharexsxcu)
1890+
* and for screenshots on linux, see [./contrib/flameshot.sh](./contrib/flameshot.sh)
18901891
18911892
* contextlet (web browser integration); see [contrib contextlet](contrib/#send-to-cppcontextletjson)
18921893

contrib/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* the `act:bput` thing is optional since copyparty v1.9.29
2020
* using an older sharex version, maybe sharex v12.1.1 for example? dw fam i got your back 👉😎👉 [`sharex12.sxcu`](sharex12.sxcu)
2121

22+
### [`flameshot.sh`](flameshot.sh)
23+
* takes a screenshot with [flameshot](https://flameshot.org/) on Linux, uploads it, and writes the URL to clipboard
24+
2225
### [`send-to-cpp.contextlet.json`](send-to-cpp.contextlet.json)
2326
* browser integration, kind of? custom rightclick actions and stuff
2427
* rightclick a pic and send it to copyparty straight from your browser

contrib/flameshot.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# take a screenshot with flameshot and send it to copyparty;
5+
# the image url will be placed on your clipboard
6+
7+
password=wark
8+
url=https://a.ocv.me/up/
9+
filename=$(date +%Y-%m%d-%H%M%S).png
10+
11+
flameshot gui -s -r |
12+
curl -T- $url$filename?pw=$password |
13+
tail -n 1 |
14+
xsel -ib

0 commit comments

Comments
 (0)