Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement wl-paste --watch #5

Open
YaLTeR opened this issue Oct 2, 2019 · 5 comments
Open

Implement wl-paste --watch #5

YaLTeR opened this issue Oct 2, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@YaLTeR
Copy link
Owner

YaLTeR commented Oct 2, 2019

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 YaLTeR added the enhancement New feature or request label Oct 2, 2019
@YaLTeR YaLTeR changed the title Implement --watch Implement wl-paste --watch Oct 2, 2019
@bugaevc
Copy link
Collaborator

bugaevc commented Oct 2, 2019

😀

@ghost
Copy link

ghost commented Nov 3, 2019

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).

@bugaevc
Copy link
Collaborator

bugaevc commented Nov 3, 2019

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.

@ibrahimkettaneh
Copy link

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.

@imgurbot12
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants