TPMiddle.exe is a brilliant program by Gerhard Wiesinger that allows both functions at once by detecting whether or not the mouse is moved between press and release. Scroll modifier for the trackpoint or a middle-click/MOUSE3 button, but not both at The middle mouse button below the TrackPoint can be used as a TPMiddle - Scroll & middle -click with the TrackPoint Or, to to avoid rebuilding, use a libinput. 11 is the device number from xinput list and you can add the set-prop command to ~/.xstartup. add middle.diff to debian/patches/seriesĪnd use xinput list and xinput set-prop 11 "libinput Middle Emulation Enabled" 1 to enable the left+right emulation.
I had to do a couple test before I found the right id. This is what I do on Ubuntu 20.04 (uses Wayland by default) to disable my middle button or remap my middle button. No need to put whole map - map till interested button suffice (the rest just won't be updated): xinput set-button-map 10 1 0
To disable middle button triggering any action, I'd use command xinput set-button-map with id of the device and updated map (new action code is 0 - no action). We're interested in second map - number 2 corresponds to action "Middle Button Click" and the position of it - to actual middle button.
This is mapping of pointer buttons to actions, where number represents action code, and position - button. Next, get current button map of that device (I'll be using id of my device, which is 10): xinput get-button-map 10 For example, id of this device is 10: Lenovo ThinkPad Compact USB Keyboard with TrackPoint id=10 (Scroll down to title "Example: Disabling middle-mouse button paste on a scrollwheel mouse").įirst, determine id of the pointer by listing input devices: xinput list | grep 'id='Īnd look for the line that contains name of your pointer, there also should be id of the device, right after "id=". ↳ Razer Razer DeathStalker id=11 įollowing instructions are based on info at Ubuntu Wiki ⎜ ↳ Logitech G500s Laser Gaming Mouse id=10 ⎜ ↳ Logitech G500s Laser Gaming Mouse id=9
⎜ ↳ Turtle Beach Turtle Beach PX3 (XBOX) id=8 Xinput list output: ⎡ Virtual core pointer id=2 Is there any way to disable it? Or map it to nothing? So I tried looking through the various other questions but they mostly focus on disabling the middle mouse paste.īasically the middle mouse button on my Logitech G500s is broken, and it keeps "clicking" randomly so it's screwing up any chance of doing work.