Xorg

From NixOS Wiki
Revision as of 16:26, 10 March 2019 by imported>Ar1a (Created page with "To disable mouse acceleration for a touchpad, it's as simple as <pre> services.xserver.libinput.enable = true; services.xserver.libinput.accelProfile = "flat"; </pre> B...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To disable mouse acceleration for a touchpad, it's as simple as

  services.xserver.libinput.enable = true;
  services.xserver.libinput.accelProfile = "flat";

But to disable it for a mouse, it's a bit more wordy -

  services.xserver.libinput.enable = true;
  services.xserver.config = ''
    Section "InputClass"
      Identifier "mouse accel"
      Driver "libinput"
      MatchIsPointer "on"
      Option "AccelProfile" "flat"
      Option "AccelSpeed" "0"
    EndSection
  '';