Closed koraa closed 1 year ago
hi I'm not sure why special handing of newlines is required, that's what cliphist decode is for
hi I'm not sure why special handing of newlines is required, that's what cliphist decode is for
There is no special handling. Bash and wl-copy are simply erasing the information about whether there is a trailing newline by default…
ah ok i think i see it now :+1:
there is already a contrib/ dir here but i was thinking of moving that stuff to a wiki instead of checking them in - since i don't use these scripts personally and don't want to have to maintain them as cliphist evolves
i just changed the github settings and i think you can edit the wiki now. does that work?
thanks!
Since neither you nor I wish to maintain them they will have to go to the abyss of forgotten software. It is a shame really, cliphist is of very limited use without them %)
In case anyone else wishes to pick these scripts up, I hereby license them under a CC0 (Public Domain) license.
The following scripts support:
They do not support informing cliphist about the mime type; they are also a bit inefficient as many commands are started to make this setup work. A pure go/rust solution might be better suited for efficiency.
~/.config/systemd/user/cliphist.helper.sh
~/.config/systemd/user/cliphist.service
~/.config/systemd/user/cliphist-watch-primary.service
~/.config/systemd/user/cliphist-watch-clipboard.service