Ponde

Pointing device configurationd daemon for Wayland and X11 using libinput and uinput.

It can do the same configiration as https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput.

Motivation

In Wayland, xf86-input-libinput is not available, and the pointing device settings are different for each compositor. Gnome Wayland allows the same settings as xf86-input-libinput, but does not allow mapping of buttons, nor does it allow per-device settings.

I wrote this program to solve these problem.

Install

console $ cargo install ponde

Usage

console $ sudo ponde /path/to/config.yaml

Configuration

Example configuration is here:

config.yaml devices: - match_rule: name: Kensington Expert Wireless TB Mouse accel_profile: flat scroll_button: BTN_SIDE scroll_button_lock: true - match_rule: name: "- GameBall" accel_profile: flat scroll_button: BTN_MIDDLE scroll_button_lock: false - match_rule: name: Logitech M570 accel_profile: flat scroll_button: BTN_EXTRA scroll_button_lock: false button_mapping: BTN_SIDE: BTN_MIDDLE

Configuration properties

Avoid conflicts with Wayland compositor and X11 settings

The events output by ponde to uinput become input events for the Wayland compositor and X11. In other words, they are affected by these settings. Especially affected is accel_profile, which libinput sets to adaptive by default, so if nothing is set, double acceleration will occur.

You can avoid this problem by setting the following:

For gnome: console $ gsettings set org.gnome.desktop.peripherals.mouse accel-profile flat

For X11:

```conf

/etc/X11/xorg.conf.d/90-ponde.conf

Section "InputClass" Identifier "Ponde" MatchProduct "ponde" Driver "libinput" Option "AccelProfile" "flat" EndSection ```

Limitation

Trackpad cannot be configured. This is intentionally disallowed because libinput converts multiple finger swipes into gesture events and the original input cannot be restored.

License

MIT