Skip to content

Instantly share code, notes, and snippets.

@oxechicao
Last active December 15, 2017 19:32
Show Gist options
  • Select an option

  • Save oxechicao/43689f9ca89373f3beff2490f6060937 to your computer and use it in GitHub Desktop.

Select an option

Save oxechicao/43689f9ca89373f3beff2490f6060937 to your computer and use it in GitHub Desktop.

/etc/X11/xorg.conf.d/synaptics.conf

mkdir /etc/X11/xorg.conf.d/;

echo 'Section "InputClass"
        Identifier      "Touchpad"                      # required
        MatchIsTouchpad "yes"                           # required
        Driver          "synaptics"                     # required
        Option          "MinSpeed"              "0.5"
        Option          "MaxSpeed"              "1.0"
        Option          "AccelFactor"           "0.075"
        Option          "TapButton1"            "1"
        Option          "TapButton2"            "2"     # multitouch
        Option          "TapButton3"            "3"     # multitouch
        Option          "VertTwoFingerScroll"   "1"     # multitouch
        Option          "HorizTwoFingerScroll"  "1"     # multitouch
        Option          "VertEdgeScroll"        "1"
        Option          "CoastingSpeed"         "8"
        Option          "CornerCoasting"        "1"
        Option          "CircularScrolling"     "1"
        Option          "CircScrollTrigger"     "7"
        Option          "EdgeMotionUseAlways"   "1"
        Option          "LBCornerButton"        "8"     # browser "back" btn
        Option          "RBCornerButton"        "9"     # browser "forward" btn
        Option          "EmulateTwoFingerMinZ"  "35"
        Option          "EmulateTwoFingerMinW"  "8"
EndSection' > /etc/X11/xorg.conf.d/synaptics.conf;

echo 'Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf;

systemctl restart lightdm;

/usr/bin/qsynaptics -r;
/usr/bin/syndaemon -d -t -k -i 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment