Skip to content

Adds xsel support#109

Open
jgarte wants to merge 1 commit into
out-of-cheese-error:masterfrom
jgarte:xsel
Open

Adds xsel support#109
jgarte wants to merge 1 commit into
out-of-cheese-error:masterfrom
jgarte:xsel

Conversation

@jgarte

@jgarte jgarte commented Oct 1, 2021

Copy link
Copy Markdown
Contributor

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

Any help or guidance is much appreciated.

@Ninjani

Ninjani commented Oct 26, 2021

Copy link
Copy Markdown
Member

@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

jgarte commented Oct 26, 2021

Copy link
Copy Markdown
Contributor Author

@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

ony commented Dec 5, 2021

Copy link
Copy Markdown

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