dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upload from clipboard

dshoreman opened this issue · comments

Add a --clipboard option to enable uploading to Nextcloud directly from the system clipboard. Would likely use xclip -selection c -o for X11, or wl-paste (provided by wl-clipboard) for Wayland.

Would be even better if we could simply use STDIN:

# On X11
alias pbpaste="xclip -selection c -o"
pbpaste | nextshot

# On Wayland
wl-paste | nextshot