Skip to content

Instantly share code, notes, and snippets.

@mrshu
Created September 3, 2015 21:49
Show Gist options
  • Save mrshu/9cc6b706b52ce7703643 to your computer and use it in GitHub Desktop.
Save mrshu/9cc6b706b52ce7703643 to your computer and use it in GitHub Desktop.
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "ClickPad" "true"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
# Turn on Palm Detection
Option "PalmDetect" "1"
# Scroll Actions
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
# Area defines
Option "AreaTopEdge" "2500"
Option "SoftButtonAreas" "65% 0 0 2500 35% 65% 0 2500"
Option "RBCornerButton" "1"
# Speed options
Option "MinSpeed" "1"
Option "MaxSpeed" "1"
Option "AccelerationProfile" "2"
Option "AdaptiveDeceleration" "16"
# Option "ConstantDeceleration" "16"
Option "VelocityScale" "8"
# Tap with one finger for left click
# Tap with two fingers for right click
# Tap with three fingers for middle click
#Option "TapButton1" "1"
#Option "TapButton3" "2"
#Option "TapButton2" "3"
#Option "FastTaps" "1"
EndSection
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment