Skip to content

using lemonade as a zero-touch xclip alternative #41

@clementnuss

Description

@clementnuss

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions