Skip to content

Instantly share code, notes, and snippets.

@donchev7
Created February 28, 2020 19:53
Show Gist options
  • Save donchev7/500b65a44dd5a06e26db710c34e2aa36 to your computer and use it in GitHub Desktop.
Save donchev7/500b65a44dd5a06e26db710c34e2aa36 to your computer and use it in GitHub Desktop.
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "mtrack"
#Option "Ignore" "on"
Option "IgnorePalm" "true"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "0"
Option "TapButton4" "0"
Option "ClickFinger1" "1"
Option "ClickFinger2" "3"
Option "ClickFinger3" "0"
# Setup button zones on the bottom of the touchpad
Option "ButtonIntegrated" "true"
Option "ButtonEnable" "true"
Option "ButtonZonesEnable" "true"
Option "FirstButtonZone" "1"
Option "SecondButtonZone" "3"
Option "LimitButtonZonesToBottomEdge" "true"
Option "ButtonMoveEmulate" "false"
# Movement and sensitivity
Option "Sensitivity" "1.5"
# Scrolling setup
Option "ScrollDistance" "25" # 150 default
Option "ScrollClickTime" "20" # 20 default
Option "ScrollSensitivity" "150" # 1000 default
# Natural scroll
Option "ScrollUpButton" "5"
Option "ScrollDownButton" "4"
Option "ScrollLeftButton" "7"
Option "ScrollRightButton" "6"
Option "TabDragEnable" "false"
Option "TapDragDist" "300"
Option "TabDragTime" "80"
# Three finger drag
Option "SwipeDistance" "1"
Option "SwipeLeftButton" "1"
Option "SwipeRightButton" "1"
Option "SwipeUpButton" "1"
Option "SwipeDownButton" "1"
Option "SwipeClickTime" "0"
Option "SwipeSensitivity" "1000"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment