Important
This guide focuses on a specific system comprised of an Arch Linux based PC using KDE Plasma on X11, and the Apple Magic Trackpad 2.
This details how we could configure and setup a touchpad for use on desktop Linux.
This details optional configurations for the trackpad.
-
Launch the System Settings application.
-
Under Hardware, expand the Input Devices section.
-
Select the Touchpad menu item.
-
Configure the touchpad like so (make changes to your liking):
- Device enabled:
Enabled
- Pointer acceleration:
0.10
- Acceleration profile:
Adaptive
- Tapping:
Tap-to-click
andTap-and-drag
- Two-finger tap:
Right-click
- Scrolling:
Two fingers
andInvert scroll direction (Natural scrolling)
- Right click:
Press anywhere with two fingers
- Device enabled:
-
Click Apply.
This details how we could configure our trackpad to behave more like it would on macOS, on X11.
-
Install the
touchegg
package usingyay
. -
Start and Enable the
touchegg.service
service. -
Restart the system or run the
touchegg
command manually i.e. through KRunner for the first time. -
Configure Touchégg:
-
Edit the Touchégg configuration file:
nano ~/.config/touchegg/touchegg.conf
-
Copy the content of the sample touchegg.conf file and paste it into the configuration file.
-
Make your own modifications and add in your own values to the configuration file as you see fit, then save the file.
-
-
Install the Touché (
com.github.joseexposito.touche
) app as a Flatpak. -
To further configure the Touchégg gestures, you can do so graphically through the Touché app.
Note
This has been tested with the Mozilla Firefox and Mozilla Thunderbird Flatpak running on the X11 graphics platform.
This details how to enable smooth scrolling in Mozilla applications including Firefox and Thunderbird on X11.
- Kinetic Scrolling on Linux?
- PSA for Firefox users: set MOZ_USE_XINPUT2=1 to enable macOS-like smooth scrolling
-
Add the following Environment Variable to the Firefox Flatpak app using Flatseal:
MOZ_USE_XINPUT2=1
-
In the General tab, under the Browsing section, update the following Firefox setting:
- Use smooth scrolling:
Enabled
- Use smooth scrolling:
-
Restart the Firefox application.
-
Add the following Environment Variable to the Thunderbird Flatpak app using Flatseal:
MOZ_USE_XINPUT2=1
-
In the General tab, under the Language & Appearance section, update the following Thunderbird setting:
- Use smooth scrolling:
Enabled
- Use smooth scrolling:
-
Restart the Thunderbird application.