From d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 9 Dec 2020 14:18:19 +0100 Subject: Simplify mouse acceleration setup --- system/settings/hardware/mouse.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/system/settings/hardware/mouse.nix b/system/settings/hardware/mouse.nix index b30d4124..df57073e 100644 --- a/system/settings/hardware/mouse.nix +++ b/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"; + }; } -- cgit 1.4.1