Holy moly guys ... This question has been asked on all boards everywhere on the internet.
I've read everything and I've gone beyond page 2 on Google search results
I am pleading can someone help me figure this out
I have seen answers like "it's hardcoded into the system". Why???
Enough rambling, now for the problem:
Problem: I need to disable the middle-click paste function
Corolary: I still need to be able to scroll using the middle button.
I am a software developer, using a Thinkpad keyboard. The one that has a trackpoint for a mouse.
I need to be able to scroll in editors like VS Code or Sublime Text without accidentally pasting the clipboard into the code without realizing it (which breaks the code)
I also need to be able to scroll using the trackpoint mouse + middle button.
Non-solutions:
- turning the middle button completely off. I need it to scroll.
- use Vim/Emacs (I have seen people suggest this)
- Create an elaborate bash script with a while-loop that continuously blocks pasting if the event originates from the middle button
I believe this problem stems from the fact that this only affects those with thinkpads, since they are the only ones that have a trackpoint and a middle click button on the keyboard. Most people use a mouse with a scroll wheel so it's much harder for them to accidentally click the scroll wheel to paste.
Kind regards:
A ctrl + v
user
And yes, I would like a magic solution, who woulnt? I was hoping for something that I might not have happened upon yet or something someone may have figured out or most likely, something recent (like the wayland thing, which didnt work btw) that could be done because most of what I've seen is pretty old
– isebarn Jul 18 '22 at 17:22