summary refs log tree commit diff stats
path: root/modules/synaptics.nix
blob: 9f075cce55f7a24b241885da1ef7318ec783da83 (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.04";

      minSpeed = "0.3";
      maxSpeed = "0.6";

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

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