Skip to content

Instantly share code, notes, and snippets.

@worldsayshi
Created March 18, 2016 13:43
Show Gist options
  • Save worldsayshi/24562de45f9cc948e235 to your computer and use it in GitHub Desktop.
Save worldsayshi/24562de45f9cc948e235 to your computer and use it in GitHub Desktop.
Fixing Mac-like touch settings on Ubuntu laptop with somewhat mac-like touchpad
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# 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*"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
Option "VertScrollDelta" "-30
Option "HorizScrollDelta" "-30
Option "SingleTapTimeout" "0"
Option "MaxDoubleTapTime" "0"
Option "HorizTwoFingerScroll" "1"
Option "TapButton1" "0"
Option "TapButton2" "0"
Option "TapButton3" "0"
Option "TapAndDragGesture"
EndSection
# Not sure if needed??
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection

Some of the conf might be unnecessary. Worked for me on Dell XPS 13

  1. Disable GNOME:s conflicting gui-based conf
  2. Run dconf-editor
  3. Edit /org/gnome/settings-daemon/plugins/mouse/ (or /org/cinnamon/settings-daemon/plugins/mouse/ for cinnamon)
  4. Uncheck the active setting
  5. Add the conf file at /etc/X11/xorg.conf.d/50-synaptics.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment