Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Waltibaba/bc4f1b7c5f6dc0ea5e3b to your computer and use it in GitHub Desktop.

Select an option

Save Waltibaba/bc4f1b7c5f6dc0ea5e3b to your computer and use it in GitHub Desktop.
For HP Elitebooks with only 2 trackpoint buttons
xinput --set-prop 14 "Evdev Wheel Emulation" 1
xinput --set-prop 14 "Evdev Wheel Emulation Button" 3
xinput --set-button-map 14 1 3 2 4 5
xinput --set-prop 14 "Evdev Third Button Emulation" 1
xinput --set-prop 14 "Evdev Third Button Emulation Button" 2
xinput --set-prop 14 "Evdev Third Button Emulation Timeout" 300
@Waltibaba
Copy link
Author

  • Right button becomes middle mouse button (button 2 in xinput terms)
  • left button itself for 300ms, then emulates right click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment