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

Adds xsel support #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adds xsel support #109

wants to merge 1 commit into from

Conversation

jgarte
Copy link
Contributor

@jgarte jgarte commented Oct 1, 2021

Hi, this is a WIP pr for adding xsel support as a configuration option.

Any help or guidance is much appreciated.

@Ninjani
Copy link
Member

Ninjani commented Oct 26, 2021

@jgarte I guess the expected behavior is to check if xclip is in the PATH otherwise fall back to xsel? You could use the which crate to do this or traverse the PATH and check (e.g this SO answer)

@jgarte
Copy link
Contributor Author

jgarte commented Oct 26, 2021

@jgarte I guess the expected behavior is to check if xclip is in the PATH otherwise fall back to xsel? You could use the which crate to do this or traverse the PATH and check (e.g this SO answer)

Cool, I'll check that out.

This is how emacs-xclip does it:

https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=blob;f=xclip.el;h=71efda328c60649ac63b6140a291e92bddf428e9;hb=refs/heads/externals/xclip#l131

Sounds like the which crate might be the way to go. Thanks for sharing.

@ony
Copy link

ony commented Dec 5, 2021

It would be really cool if those two constants will be available for override in config. In my case I need wl-copy on Wayland.

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

Successfully merging this pull request may close these issues.

3 participants