Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created February 29, 2020 02:44
Show Gist options
  • 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)

@banditch
Copy link

Thanks, been breaking my brain trying to do this

@Fhraze
Copy link

Fhraze commented Jun 17, 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)

coming back to this old gist to report to everyone that comes by with the same problem:
Wayland compositors have to implement this by themselves and River doesn't seem to support tablets and touchpads, not when I was using it anyways. But on Hyprland it works PERFECTLY and even has more advanced configuration 10/10

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