You are not logged in.

#1 Today 11:40:02

funeshroom
Member
Registered: 2025-02-17
Posts: 7

Which clipboard managers can preserve PRIMARY selection?

I really like how PRIMARY selection works on Xorg: select text to copy, middle click to paste.
The only issue I have is that PRIMARY selection contents do not survive termination of the application that it is copied from, because app's internal memory is used for storing the selection.

Are there clipboard managers that can alleviate this nuisance and get PRIMARY selections to survive their app's lifetime, and which if yes?
I already use autocutsel for synchronizing PRIMARY and CLIPBOARD selections but this preserves the first one only as CLIPBOARD selection i.e. I can't use middle click to paste which is really neat.
So what autocutsel does is not the solution I'm looking for.

Offline

#2 Today 17:02:57

seth
Member
Registered: 2012-09-03
Posts: 61,543

Re: Which clipboard managers can preserve PRIMARY selection?

"xsel -k"?

Offline

#3 Today 19:07:33

funeshroom
Member
Registered: 2025-02-17
Posts: 7

Re: Which clipboard managers can preserve PRIMARY selection?

seth wrote:

"xsel -k"?

That does what I want but it needs to be run manually every time.
Do you (or anyone else) know a good way to automate it without just making it be run constantly?
Ideally, it would be run whenever the X app that is currently associated with PRIMARY selection is about to be closed; a good alternative is also making it run whenever any X app is about to be closed.

Offline

Board footer

Powered by FluxBB