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

Custom selections (in respect to ICCCM 2.6.1) #143

Open
schrmh opened this issue Jul 3, 2023 · 8 comments
Open

Custom selections (in respect to ICCCM 2.6.1) #143

schrmh opened this issue Jul 3, 2023 · 8 comments

Comments

@schrmh
Copy link

schrmh commented Jul 3, 2023

Currently, xclip only allows to copy to and paste from the three standard selections.
However, ICCCM 2.6.1 mentions that more selections can exist:

There can be an arbitrary number of selections, each named by an atom. To conform with the inter-client conventions, however, clients need deal with only these three selections:

PRIMARY
SECONDARY
CLIPBOARD

Other selections may be used freely for private communication among related groups of clients.

(https://tronche.com/gui/x/icccm/sec-2.html#s-2.6.1)

I wish for xclip to support selections of custom names.

This blog post might help a bit:
https://www.uninformativ.de/blog/postings/2017-04-02/0/POSTING-en.html

@quartzjer
Copy link
Collaborator

Hi @schrmh! Would you be interested in making a PR to help support this?

@schrmh
Copy link
Author

schrmh commented Dec 27, 2024 via email

@quartzjer
Copy link
Collaborator

I'm going to close this for now, ideally someone who wants/needs this capability will be able to contribute in the future, thanks!

@schrmh
Copy link
Author

schrmh commented Dec 30, 2024 via email

@hackerb9
Copy link
Collaborator

hackerb9 commented Jan 1, 2025

I've created a "low priority" tag so that issues like this can have a central place to be tracked and will be found easily by people who want to contribute a patch in the future.

@hackerb9 hackerb9 reopened this Jan 1, 2025
@hackerb9
Copy link
Collaborator

hackerb9 commented Jan 1, 2025

By the way, I may have written the code to do custom selections at some point in the past as it sounds familiar. If I come across it, I'll update this issue.

@gklanderman
Copy link

I have a local change that allows -selection to support arbitrary atoms starting with underscore. it's a very tiny patch but I'd need to add some documentation to it..

requiring the atoms to start with underscore seemed like not a meaningful limitation, and a way to still have a useful error message if you typo one of the standard selection names.

@gklanderman
Copy link

@hackerb9 see issue #75 where you previously suggested supporting arbitrary selection names.

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

No branches or pull requests

4 participants