Provide user config for Xorg
The manual of libinput provides two ways for users to adjust their input devices settings:
- Editing
/etc/X11/xorg.conf.d/99-libinput-custom-config.conf
: but this requires root access. - Using
xinput
: which is the common answer given to end users (ubuntu, arch wiki), and most users add it to$XINITRC
.
However, the manual mentions:
Changes performed by xinput do not persist across device hotplugs. xinput is considered a debugging and testing tool only and should not be used for permanent configurations.
Then I think the clean solution to provide "permanent configurations" is to make users able to adjust their device preferences within directories like $XDG_CONFIG_HOME/X11/xinput.conf
.