Skip to content

Instantly share code, notes, and snippets.

@111a5ab1
Created June 15, 2019 02:02
Show Gist options
  • Save 111a5ab1/d353af199fd523d33f222850834f9cc5 to your computer and use it in GitHub Desktop.
Save 111a5ab1/d353af199fd523d33f222850834f9cc5 to your computer and use it in GitHub Desktop.
Macbook Pro trackpad configuration on i3 via xinput/libinput
# List all the input devices
xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Broadcom Corp. Bluetooth USB Host Controller id=11 [slave pointer (2)]
⎜ ↳ bcm5974 id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Broadcom Corp. Bluetooth USB Host Controller id=10 [slave keyboard (3)]
↳ Apple Inc. Apple Internal Keyboard / Trackpad id=12 [slave keyboard (3)]
# List properties that can be set for the trackpad ("pointer") device identified above
xinput --list-props 13
Device 'bcm5974':
Device Enabled (154): 1
Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (309): 0
libinput Tapping Enabled Default (310): 0
libinput Tapping Drag Enabled (311): 1
libinput Tapping Drag Enabled Default (312): 1
libinput Tapping Drag Lock Enabled (313): 0
libinput Tapping Drag Lock Enabled Default (314): 0
libinput Tapping Button Mapping Enabled (315): 1, 0
libinput Tapping Button Mapping Default (316): 1, 0
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Disable While Typing Enabled (317): 1
libinput Disable While Typing Enabled Default (318): 1
libinput Scroll Methods Available (293): 1, 1, 0
libinput Scroll Method Enabled (294): 1, 0, 0
libinput Scroll Method Enabled Default (295): 1, 0, 0
libinput Click Methods Available (319): 1, 1
libinput Click Method Enabled (320): 0, 1
libinput Click Method Enabled Default (321): 0, 1
libinput Middle Emulation Enabled (298): 0
libinput Middle Emulation Enabled Default (299): 0
libinput Accel Speed (300): 0.000000
libinput Accel Speed Default (301): 0.000000
libinput Left Handed Enabled (305): 0
libinput Left Handed Enabled Default (306): 0
libinput Send Events Modes Available (276): 1, 1
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/event8"
Device Product ID (280): 1452, 627
libinput Drag Lock Buttons (307): <no items>
libinput Horizontal Scroll Enabled (308): 1
# Enable natural scrolling
xinput set-prop 13 291 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment