wl-clipboard-rs icon indicating copy to clipboard operation
wl-clipboard-rs copied to clipboard

Implement wl-paste --watch

Open YaLTeR opened this issue 6 years ago • 5 comments

Feature parity with wl-clipboard 2.0.

An API for this sort of stuff would be nice, I imagine something like an event iterator interface?

YaLTeR avatar Oct 02 '19 17:10 YaLTeR

😀

bugaevc avatar Oct 02 '19 17:10 bugaevc

Note: wl-paste --watch only offers one mime type for each copy item (random or chosen by user). This is the most practical choice for a CLI command used to paste the clipboard into a program, but a generic library should allow to get the content of all offered mime types at once (my use case for example is a clipboard manager).

ghost avatar Nov 03 '19 11:11 ghost

FYI if you don't care about atomicity, you can call wl-paste -l and wl-paste -t any/type from within the wl-paste -w handler.

bugaevc avatar Nov 03 '19 11:11 bugaevc

This functionality would enable the utility of wl-paste-rs for users who utilize clipboard managers such as cliphist. The following commands are necessary to update the clipboard history.

wl-paste --type text --watch cliphist store
wl-paste --type image --watch cliphist store

Incorporating this feature into this crate would be highly beneficial and greatly appreciated. Your hard work and dedication are truly valued.

ibrahimkettaneh avatar Feb 07 '24 01:02 ibrahimkettaneh

another library exists that has implemented a lot of the same features including watching, but its not nearly as polished or complete as this library. it would nice to see this feature added as it would avoid my need for redundant packages for the clipboard manager I am writing. https://github.com/Decodetalkers/wayland-clipboard-listener/tree/master

imgurbot12 avatar May 01 '24 05:05 imgurbot12