Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created February 29, 2020 02:44
Show Gist options
  • Star 33 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save miguelmota/c35999dbf9c15154d0aec8dace29d481 to your computer and use it in GitHub Desktop.
Save miguelmota/c35999dbf9c15154d0aec8dace29d481 to your computer and use it in GitHub Desktop.
Arch linux enable tap to click on touchpad
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
EndSection
sudo vim /etc/X11/xorg.conf.d/30-touchpad.conf
# restart xorg
@insujeon
Copy link

We can add additional natural mouse scroll option

Option "NaturalScrolling" "true"

@eminboydak
Copy link

This is working. Thank you.

@nutrisoft
Copy link

wow, it work perfectly. Thanks

@clearnitesky
Copy link

Thank you for sharing.

@GamerBene19
Copy link

GamerBene19 commented Feb 12, 2023

Note that

Option "TappingButtonMap" "lmr"

causes a double tap to be a middle click and a triple tap to be a right click. I prefer it the other way around so I changed it to

Option "TappingButtonMap" "lrm"

@Fhraze
Copy link

Fhraze commented Jul 29, 2023

How can I do the same on Wayland? I'm using RiverWM

@SlimTux
Copy link

SlimTux commented Jan 2, 2024

How can I do the same on Wayland? I'm using RiverWM

x-device-input is a file unique for X11.

sudo vim /etc/X11/xorg.conf.d/30-touchpad.conf

Check the riverwm configuration/documentation that they should have something there, but IMO, if you want to have no issues with Wayland you either leave it, or try it out Hyprland (I am not an "Wayland Hater" I daily drived for half-a-year)

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