Actually Disabling Middle Click to paste

Hey there o/

I’m unable to actually disable middle click paste on my plasma install. The “Middle-click: Pastes selected text” option under general behavior is already disabled. “Keep the selection and clipboard the same” is also disabled under the clipboard settings. The pasting still occurs under firefox, electron apps (logseq, element, etc), but not in all of them, like most of the kde apps (settings, dolphin, etc)

Is there something I’m missing, or something that may be conflicting with these settings?

Here’s my system info:

Operating System: NixOS 24.11
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.6.60 (64-bit)
Graphics Platform: Wayland

Middle mouse paste is an old common Unix idiom. KDE allows you to turn if off, but this “off feature” is not a standard and KDE can’t prevent non-KDE apps from continuing to interpret middle click as “paste from selection”.

The only thing to do, maybe, is to have some sort of process that tries to destroy other applications support for the “selection clipboard” by monitoring it and as soon as it sees something in the selection clipboard - it takes it over and clears it. I’m not familiar with something that does this, but I can think of a few ways to create such a thing.

1 Like

The ability to highlight text and middle click to duplicate it elsewhere has long been regarded one of the strongest features of using a Linux environment…

Firefox, electron apps etc do not conform to the Plasma desktop, so different behaviours are expected (throw in F10 for the menu for good measure).

I see. Atleast for firefox, I was able to find a way to disable it (about:config → middlemouse.paste = false). I use middle mouse to auto scroll or pretty much anything other than pasting, so its quite frustrating to have a giant piece of text get thrown up in a random text box.