diff --git a/modules/input.nix b/modules/input.nix index 89cbcf71..dae64d56 100644 --- a/modules/input.nix +++ b/modules/input.nix @@ -178,6 +178,15 @@ let ''; apply = method: if (method == null) then null else scrollMethods."${method}"; }; + scrollSpeed = lib.mkOption { + type = with lib.types; nullOr (numbers.between 0.1 20); + default = null; + example = 0.1; + description = '' + Configure the scrolling speed of the touchpad. Lower is slower. + If unset, KDE Plasma will default to 0.3 . + ''; + }; rightClickMethod = lib.mkOption { type = with lib.types; nullOr (enum (builtins.attrNames rightClickMethods)); default = null; @@ -222,6 +231,7 @@ let TapAndDrag = touchpad.tapAndDrag; TapDragLock = touchpad.tapDragLock; ScrollMethod = touchpad.scrollMethod; + ScrollFactor = touchpad.scrollSpeed; ClickMethod = touchpad.rightClickMethod; LmrTapButtonMap = touchpad.twoFingerTap; };