Skip to content

Instantly share code, notes, and snippets.

@kjmkznr
Created June 3, 2017 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjmkznr/a9c9e2f2cfe78a0a69699a5317b557e3 to your computer and use it in GitHub Desktop.
Save kjmkznr/a9c9e2f2cfe78a0a69699a5317b557e3 to your computer and use it in GitHub Desktop.
Section "InputClass"
Identifier "Keyboard-ThinkPad"
Driver "libinput"
#MatchProduct "ThinkPad Compact Bluetooth Keyboard with TrackPoint"
#MatchIsKeyboard "on"
#Option "SendCoreEvents" "true"
Option "XkbLayout" "dvorak,us"
Option "XkbVariant" "dvorak"
Option "XkbOptions" "ctrl:swapcaps,grp:alt_shift_toggle,grp_led:scroll"
EndSection
Section "InputClass"
Identifier "mouse-ThinkPad"
Driver "libinput"
Option "EmulateWheel" "true"
Option "Emulate3Buttons" "true"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
#MatchIsPointer "yes"
EndSection
Section "InputClass"
Identifier "Kensington Trackball"
Driver "evdev"
MatchProduct "Kensington Expert Mouse"
MatchIsPointer "on"
Option "Device" "/dev/input/by-id/usb-Kensington_Kensington_Expert_Mouse-event-mouse"
Option "SendCoreEvents" "true"
# Default:
# .--------. .-----------.
# | 2:Mid | | 8:Back |
# `--------' `-----------'
# .--------. .-----------.
# | 1:Left | | 3:Right |
# `--------' `-----------'
# 4:ScrollUp
# 5:ScrollDown
#
# .--------. .-----------.
# | 2:Mid | | 8:Back |
# `--------' `-----------'
# .--------. .-----------.
# | 1:Left | | 3:Right |
# `--------' `-----------'
# 4:ScrollUp
# 5:ScrollDown
#Option "ButtonMapping" "1 2 8 4 5 6 7 3"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "EmulateWheelInertia" "20"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Section "InputClass"
Identifier "Logitech USB Trackball"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
Option "Device" "/dev/input/by-id/usb-Logitech_USB_Trackball-event-mouse"
Driver "evdev"
Option "SendCoreEvents" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
Option "EmulateWheelInertia" "20"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "DRI" "false"
Option "NoAccel" "True"
Option "XvMC" "True"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment