Sample Header Ad - 728x90

How to enable tap, two finger tap, and natural scrolling in Guix?

3 votes
3 answers
2330 views
After booting Guix for the first time, I noticed that tapping on touchpad doesn't render any action. Apparently, Guix comes with a default configuration for touchpad allowing me to click on touchpad, which is mostly sufficient, but having tap disabled, which may be tiring with extensive touchpad use. This is similar to the default configuration one could encounter on Debian . For just in case, I used xinput list to find out the name of the touchpad, and xinput list-props followed by the touchpad name, to check its capabilities. Then I found the location of synclient binary with find, and, consulting the synaptics(4) man page online, invoked synclient with TapButton1=1 to enable one-finger tap, then with TapButton2=3 to set two-finger tap to right button event (which brings the right-click menu). While on it, I also enabled horizontal two-finger scrolling with HorizTwoFingerScroll=1, as well as natural scrolling by setting the VertScrollDelta and HorizScrollDelta to the same values which I learned from xinput list-props but negative (by adding - before each value). Now, one would typically add this settings to /etc/X11/xorg.conf.d/70-synaptics.conf. But since this is Guix, the file is not in /etc but in the GNU store and the touchpad driver is supposed to be configured in /etc/config.scm. The GNU Guix Reference Manual for version 1.3.0 doesn't mention how to configure synaptics. What can I do on a Guix system, so that I do not need configuring the touchpad myself after each login?
Asked by Roman Riabenko (2436 rep)
Feb 23, 2022, 09:10 AM
Last activity: Jul 12, 2023, 10:08 PM