Ben Collver
2022-05-07 15:29:34 UTC
Hi,
I would like to synchronize the X11 primary selection and secondary
clipboard. My goal is to select text in rxvt and then use the
Edit/Paste menu to paste it into leafpad. I installed autocutsel
from slackbuilds.org because it looked promising. Then I tried the
following sequence of actions:
* Open rxvt
* Run: autocutsel -debug -verbose -selection PRIMARY
* Open leafpad
* Type text into leafpad: Howdy
* Press Ctrl-A to select the text
* Press Ctrl-X to cut the text
* Open another rxvt
* Run: uname -a
* Double-click to select the word Linux
* In leafpad, click Edit, Paste
It pastes: Howdy
I expected leafpad to paste "Linux".
When I run "cutsel cut" it outputs "Linux".
When I run "xclip -out -selection primary" it outputs "Linux".
When I run "cutsel sel" it outputs "Howdy".
When I run "xclip -out -selection clipboard" it outputs "Howdy".
Below is the text output from the autocutsel process:
bash-5.1$ autocutsel -debug -verbose -selection PRIMARY
autocutsel v0.10.1
Selection changed: "Howdy"
New value saved: "Howdy"
sel -> cut: "Howdy"
Updating buffer
Selection changed: "Linux"
New value saved: "Linux"
sel -> cut: "Linux"
Updating buffer
The second-to-the-last line of output led me to expect that
autocutsel copied the word Linux from the selection into the
clipboard, but on the contrary, the clipboard still contains the word
Howdy.
Can anyone recommend a different solution to synchronize my primary
selection to the secondary clipboard?
Thanks!
-Ben
I would like to synchronize the X11 primary selection and secondary
clipboard. My goal is to select text in rxvt and then use the
Edit/Paste menu to paste it into leafpad. I installed autocutsel
from slackbuilds.org because it looked promising. Then I tried the
following sequence of actions:
* Open rxvt
* Run: autocutsel -debug -verbose -selection PRIMARY
* Open leafpad
* Type text into leafpad: Howdy
* Press Ctrl-A to select the text
* Press Ctrl-X to cut the text
* Open another rxvt
* Run: uname -a
* Double-click to select the word Linux
* In leafpad, click Edit, Paste
It pastes: Howdy
I expected leafpad to paste "Linux".
When I run "cutsel cut" it outputs "Linux".
When I run "xclip -out -selection primary" it outputs "Linux".
When I run "cutsel sel" it outputs "Howdy".
When I run "xclip -out -selection clipboard" it outputs "Howdy".
Below is the text output from the autocutsel process:
bash-5.1$ autocutsel -debug -verbose -selection PRIMARY
autocutsel v0.10.1
Selection changed: "Howdy"
New value saved: "Howdy"
sel -> cut: "Howdy"
Updating buffer
Selection changed: "Linux"
New value saved: "Linux"
sel -> cut: "Linux"
Updating buffer
The second-to-the-last line of output led me to expect that
autocutsel copied the word Linux from the selection into the
clipboard, but on the contrary, the clipboard still contains the word
Howdy.
Can anyone recommend a different solution to synchronize my primary
selection to the secondary clipboard?
Thanks!
-Ben