Hello, fellow tech enthusiasts! I’m an ArchLinux user, btw, and exploring the waters of the Wayland display protocol with the Sway compositor. For those new to these terms – Wayland is the next-generation protocol (Weston is the reference implementation of a Wayland compositor) for delivering the graphical interface; and Sway is a tiling Wayland compositor, providing functionality similar to the i3 window manager on X.Org.
As I delve deeper into the world of Wayland and Sway, I’ve found that it can be quite challenging to configure certain input devices, such as a trackpad or trackpoint. Most of the available guides are tailored to people who have already had some experience with libinput or are primarily written for X.Org. This can be quite overwhelming for a Wayland beginner, considering the complexity and volume of information.
However, it’s usually as simple as that:
input "2:10:TPPS/2_Elan_TrackPoint" {
pointer_accel 0.4
accel_profile flat
}
You can use the swaymsg -t get_inputs
command to see all connected input devices along with their identifiers.
Regarding the possible properties, they are documented in the man page for sway-input, which you can access by typing man 5 sway-input
in your terminal.
That’s should be enough to get you started!