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

Design Idea: Support for copying multiple mime-types into the clipboard #250

Open
titaniumtraveler opened this issue Feb 18, 2025 · 0 comments

Comments

@titaniumtraveler
Copy link

wl-clipboard is an incredible tool, but is currently not exposing the two capabilities that I absolutely love about the wayland clipboard:

  • Having support for multiple mime-types
  • And computing the actual values lazily

To solve both of these problems at once I would suggest to add a command wl-copy --watch <command>-subcommand with the following execution pattern:

First accept a list of mime-types. Either over the command line as list of -t <mime-type>, or over stdin the of wl-copy as newline separated list.

Then advertise that list as available clipboard, and when a copy-request is made, that mime-type is written to the stdin of <command>, which then is expected to reply via stdout.


This design would make it incredibly easy to write for example shellscripte that compute file formats on-demand depending on what the client supports/requests.

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

No branches or pull requests

1 participant