Skip to content

Instantly share code, notes, and snippets.

@leyiang
Last active June 5, 2022 17:51
Show Gist options
  • Save leyiang/54f85cf82ac466d52a9c997decf82162 to your computer and use it in GitHub Desktop.
Save leyiang/54f85cf82ac466d52a9c997decf82162 to your computer and use it in GitHub Desktop.
With the power of libinput to enable natural scrolling, tap to click, 2 finger tap convert to right click and 3 finger tap emulate middle click.
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
# Natural Scrolling
Option "NaturalScrolling" "True"
# Tap to Click
Option "Tapping" "on"
# Option "ClickMethod" "clickfinger"
# 2 Finger Tap => Context Menu
# 3 Finger Tap => Middle Click Emulation
# lmr means left/middle/right
Option "TappingButtonMap" "rml"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment