Persistent clipboard
I can copy text to my clipboard, but if I close the program that I copied from, my clipboard content is lost.
I found xorg-xclipboard in my search for a clipboard manager. If I open xclipboard and leave it running, I no longer lose the clipboard content. It is now persistent.
Is there a way to let xclipboard run in the background as a service? Or another way to obtain a persistent clipboard? I do not care about history. I just do not want to lose the content when I close the program it came from. In short, I would like it to work like it does on Windows (old habits die hard).
- Edit:
I should say that I am using bspwm and not a fully fledged desktop environment. This is why I do not have a clipboard manager running by default.
After trying out xorg-clipboard and autocutsel, those were not what I was looking for.
I then tried out clipmenu in combination with clipnotify. This works nicely! Solved.
Edited 8 Nov 2018. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 18 · 100% up
- Kind
- Text
- ID
- 9tkvsl
24 comments
Use a modern clipboard manager, the stock X tools tend to suck. There are tons of them, so take your pick.
I use copyq, there are many choices but not many are as featured as this one
+1 for copyq. Very good
Yeah I've used copyq for a long time now. Been very happy with it, except that I rather would want something lighter that doesn't lay in my tray, but haven't managed to find something better.
This has never happened and to me and it sounds extremely weird but adding “xclipboard &” at the bottom of your .bashrc will likely do the job.
Edit: or better yet at the bottom of .profile so it only executes once when you log in.
starting xclipboard opens a GUI I think.
Deleted before we saved it.
I remember Firefox was doing this. It was a "security" feature and it was driving me crazy. I don't use Firefox anymore so I don't know if it's still doing it and maybe there also other programs.
Not OP but I've noticed it with gedit. I use Gnome on Wayland.
Most if not all.
termitedoes this. So doescodefromvisual-studio-code-bin, and Firefox and Thunderbird. I'll come back if I find a program that does not do this.Deleted before we saved it.
What window manager are you using?
bspwm.It is quite possible that most desktop environments include a clipboard manager, and so users that use a DE do not notice that a clipboard manager is not necessarily included in Arch.
Hmm... according to the last paragraph of the Selections Section
One thing I learned from using Awesome is to make sure and source the
/etc/X11/xinit/xinitrc.dfiles in my .xinitrc, but I don't think that is related to this.I don't think WM is relevant. Desktop environments should include a clipboard manager though.
I can recommend clipit. It is lightweight and does the job. I also got used to the CTRL+ALT+H shortcut to popup history wherever the mouse cursor is.
As others said, there are plenty of clipboard managers out there. I use Klipper since it came with Plasma and seems to work fine.
Barely related to the topic, KDE Connect does a great job at sharing clipboard with my phone (both ways too!), if you ever wondered if it can be easily done, check it out.