all repos — nixfiles @ d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1

System and user configuration, managed by nix and home-manager

Simplify mouse acceleration setup

Alan Pearce
commit

d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1

parent

59fa5448b6a2a7829d3f4a7d84d4765302ce1f62

1 file changed, 5 insertions(+), 9 deletions(-)

changed files
M system/settings/hardware/mouse.nixsystem/settings/hardware/mouse.nix
@@ -1,12 +1,8 @@
{ config, pkgs, ... }: -{ services.xserver.config = '' - Section "InputClass" - Identifier "Mouse (No Acceleration)" - MatchIsPointer "yes" - MatchIsTouchpad "no" - Option "AccelerationProfile" "-1" - Option "AccelerationScheme" "none" - EndSection - ''; +{ + services.xserver.libinput = { + accelProfile = "flat"; + accelSpeed = "0"; + }; }