4 ms·
I accidentally middle-click paste into terminals all the time while scrolling. I would love to just disable middle-click paste in Linux. Juggling two different
by AgentME 7y ago
I accidentally middle-click paste into terminals all the time while scrolling. I would love to just disable middle-click paste in Linux. Juggling two different clipboards with different behavior is terrible. If it were a good idea, some other product not encumbered by history would have adopted it by now.
- squiggleblaz 7y agoWell, Wayland adopted it. I understand they didn't want to, but the users want it. It's basically drag-and-drop where you don't need both things to be visible at the same time and continuity of movement becomes optional. Drag and drop isn't widely used because it's awkward. But PRIMARY is probably used by a much higher proportions of the users who have it available since it fixes all the problems with it. Btw. If you want to disable it, you can. But I think you need to be more specific than "Linux" to find instructions, since Linux doesn't have anything to do with your gui. There's presently two major tools responsible for taking applications and putting them on screen, and several other environments responsible for providing you with a useful working environment in terms of the graphical display. But you're probably a troll, because a real Linux user would actually make a useful complaint.
- AgentME 7y ago>But you're probably a troll, because a real Linux user would actually make a useful complaint. I thought it was clear enough that my complaint is that there's no button in any of the settings screens to disable middle-click paste. I've searched through the settings menus of both Ubuntu and Fedora. I've searched before for solutions, and I remember the solutions mostly looked like "here's a patch for GTK v2, you'll have to compile it yourself, replace your distro's packages for GTK, cut yourself off from updates, it won't work for programs that don't use GTK v2 specifically or your distro's packaged version of it, and you're never going to know if the random issues that happen later are because you compiled the wrong version of GTK or missed some distro-specific patches". I've done that sort of thing before, and it's pain. I don't have the mental bandwidth for that any more. I think it's more than fair for me to criticize a piece of software for not having a toggle exposed for a strange UI feature that's so easy to accidentally misuse. It's been a while since I've looked harder than checking the settings menu for a solution to this, so I decided to search again, and found https://askubuntu.com/questions/4507/how-do-i-disable-middle-mouse-button-click-paste https://askubuntu.com/questions/4507/how-do-i-disable-middle.... All but one of the solutions are terrible. There's people suggesting compiling and replacing distro packages, there's people suggesting globally rebinding middle-click (some in ways that don't even persist), and there's even a suggestion for having a script run 24/7 which clears the clipboard out twice a second. There is a decent solution involving a gsettings command. The setting persists, which is great, though it only works with programs using GTK.