Skip to content

Instantly share code, notes, and snippets.

@niya3
Created November 25, 2019 20:10
Show Gist options
  • Save niya3/6f310c16805fcc13ee275c805f5407e8 to your computer and use it in GitHub Desktop.
Save niya3/6f310c16805fcc13ee275c805f5407e8 to your computer and use it in GitHub Desktop.
kensington expert mouse x11 config
# /usr/share/X11/xorg.conf.d/50-expert.conf
Section "InputClass"
Identifier "Kensington Expert Mouse"
MatchProduct "Kensington Expert Mouse"
MatchIsPointer "on"
Driver "evdev"
Option "Buttons" "9"
#xinput --set-button-map 'Kensington Expert Mouse' 2 1 3 4 5 6 7 0 9
#disabled|middle
#left|right/scroll
Option "ButtonMapping" "1 0 3 4 5 6 7 2 9"
#?
Option "SendCoreEvents" "true"
# press 3rd button to enable scroll
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "3"
# enable hotisontal scroll
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
# speedup scroll
#xinput set-prop 10 'Evdev Scrolling Distance' 1 3 5
Option "Evdev Scrolling Distance" 1 3 5
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment