Simplify mouse acceleration setup
Alan Pearce alan@alanpearce.eu
Wed, 09 Dec 2020 14:18:19 +0100
1 files changed, 5 insertions(+), 9 deletions(-)
M system/settings/hardware/mouse.nix → system/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"; + }; }