Created
January 13, 2022 14:01
-
-
Save johnstanfield/91960414ad789fdb2f1368013e5ed8e0 to your computer and use it in GitHub Desktop.
disable center touchpad button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i often click between the buttons on my touchpad. | |
# this is because the touchpad is lined up with the center of the laptop | |
# rather than the center of the keyboard home row | |
# this script finds the device id of the touchpad (which changes as devices are plugged/unplugged) and disables the triple click | |
# note: on new installations, run xinput to identify your touchpad which may not contain the word TouchPad | |
touchPadId=$(xinput | grep TouchPad | awk -F 'id=' '{print $2}' | cut -f1) | |
xinput --set-button-map $touchPadId 1 1 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment