Skip to content

Instantly share code, notes, and snippets.

@gowizzard
Created October 9, 2022 07:12
Show Gist options
  • Select an option

  • Save gowizzard/e045226b64c6b28a0700a36f350a7587 to your computer and use it in GitHub Desktop.

Select an option

Save gowizzard/e045226b64c6b28a0700a36f350a7587 to your computer and use it in GitHub Desktop.
Linux Ubuntu .hwdb configuration for Kensington Expert Mouse.
# Override the mouse buttons for the kensington expert mouse.
evdev:name:Kensington Expert Mouse:*
KEYBOARD_KEY_90003=back
KEYBOARD_KEY_90004=forward
@martin-casserly-bl

Copy link
Copy Markdown

Small update

I noticed that I am missing the middle button of the mouse after all. So I replaced forword with the btn_middle. The whole thing looks like this:

# Override the mouse buttons for the kensington expert mouse.
evdev:name:Kensington Expert Mouse:*
 KEYBOARD_KEY_90003=back
 KEYBOARD_KEY_90004=btn_middle

If you want to keep the forward button, then you should be able to set the combo left + right as middle in your OS native settings?

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