summary refs log tree commit diff stats
path: root/modules/synaptics.nix
blob: 1028db3524d3c394618a0f251771c9320edde698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ config, pkgs, ... }:

{ services.xserver = {
    libinput.enable = false;
    synaptics = {
      enable = true;

      accelFactor = "0.05";

      minSpeed = "0.2";
      maxSpeed = "1.0";

      palmDetect = true;
      palmMinWidth = 5;
      palmMinZ = 20;

      twoFingerScroll = true;
      vertTwoFingerScroll = true;
      horizTwoFingerScroll = true;
      additionalOptions = ''
        Option "RBCornerButton" "3"
        Option "VertScrollDelta" "-111"
        Option "HorizScrollDelta" "-111"
      '';
    };
  };
}