Mouse debounce in NixOS with Wayland

I have a configuration for my mouse. In any other distribution, it would look like this:

/usr/share/libinput/local-overrides.quirks

[Mouse Name]
MatchName=Mouse Name
ModelBouncingKeys=1

How can I apply this in NixOS?

:wave:

I found 2 different methods, should cause the same result though:

How can I implement all of this within Wayland?

Doesn’t libinput conflict with wayland?

Reading libinputs own (old) project page doesn’t let it sound conflicting.

libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver.

https://www.freedesktop.org/wiki/Software/libinput/

Repos readme just speaks about display managers in general (so neither Wayland nor xorg are explicitly named)

Also I am a bit confused about your confusion, as your known config file is also for libinput, if you read the config path carefully.

3 Likes

I hope not, since it should be used by wayland compositors (docs). But I am using Xorg so I can’t say I tested it :slight_smile:

For some reason it doesn’t work. The mouse’s double-click debounce is still active.

my configs:

services.libinput = {
    enable = true;
    mouse = {
      accelProfile = "flat";
      additionalOptions = ''
      [XCTECH Wireless-Receiver]
      MatchName=XCTECH Wireless-Receiver
      ModelBouncingKeys=1
      '';
    };
};

Did you try with the environment.etc approach?
Also, which compositor are you using?

At first, I wasn’t able to use this, but now it’s resolved my issue.

hyprland

THX ALL FOR HELP! :boom: