Skip to content

Instantly share code, notes, and snippets.

@johnstanfield
Created January 13, 2022 14:01
Show Gist options
  • Save johnstanfield/91960414ad789fdb2f1368013e5ed8e0 to your computer and use it in GitHub Desktop.
Save johnstanfield/91960414ad789fdb2f1368013e5ed8e0 to your computer and use it in GitHub Desktop.
disable center touchpad button
# 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