Disable middle click on arch using xinput

Linux Arch KDE Xorg

Install xinput:

sudo pacman -S xorg-xinput

Get the hardware id of the touch pad:

xinput

Disable the middle mouse button:

xinput set-button-map 17 1 0 3 4 5 6 7 8 9 10 11 12

If it works, make it permanent on x startup:

echo "xinput set-button-map 17 1 0 3 4 5 6 7 8 9 10 11 12" >> ~/.xsessionrc

© 2024 Code0x378