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

using lemonade as a zero-touch xclip alternative #41

Open
clementnuss opened this issue May 23, 2022 · 0 comments
Open

using lemonade as a zero-touch xclip alternative #41

clementnuss opened this issue May 23, 2022 · 0 comments

Comments

@clementnuss
Copy link

Hi,

I've seen myself wanting to use lemonade as a drop-in replacement for xclip, which would permit me to use the "copy to clipboard" functionality of some software (e.g. the neat lazygit) without needing from these software to knowingly support lemonade copy interaction.

in other words, when trying to Copy to clipboard from such software (lazygit), it tries to find either xsel, xclip or wl-copy in my $PATH, which it cannot succeed to do.

that is, unless I use this small script that I put in /usr/bin/xclip:

#!/bin/bash

stdin="$([[ -p /dev/stdin ]] && cat -)"
lemonade copy $stdin

with that in place, I'm able to use the functionality!

this is not really an issue, rather a suggestion to maybe put this info in the docs?
also now that there is an issue for it, people looking for lemonade xclip replacement might find this answer more easily :)

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