10

How to disable mouse middle button click paste (AKA PRIMARY selection buffer), but keep that button working?

My system: Ubuntu 16.04 with KDE v5.8.5.

Pablo Bianchi
  • 17,552
Silas
  • 101

2 Answers2

0

You can install Klipper and turn on settings "ignore mouse selection".

0

From what I can find, the issue stems from the X Window System (X11). It seems to have its own clipboard which pastes on middle-mouse click. Unfortunately, this does not seem configurable.

I have seen people try clear this clipboard through various hacks (infinite loops that clear it, rebinding, etc...) but I reckon it is easiest to just download something maintained by someone else rather than trying to work around all these edge-cases. I use this: https://github.com/milaq/XMousePasteBlock

  • I know this is AskUbuntu, but I wrote a guide on how to install this on Arch if anyone needs it: https://gist.github.com/LiamPerson/2ac59f2cf24c4f7a358af2c6989c5f22 – Liam Pillay Dec 11 '24 at 04:56