Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(input): touchpad.scrollSpeed #443

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/input.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -222,6 +231,7 @@ let
TapAndDrag = touchpad.tapAndDrag;
TapDragLock = touchpad.tapDragLock;
ScrollMethod = touchpad.scrollMethod;
ScrollFactor = touchpad.scrollSpeed;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not call it scrollFactor like the actual config option?

Copy link
Author

@aster-void aster-void Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it's also called scrollSpeed in mouse section.
I followed it because scrollFactor is a little bit unintuitive and would make it difficult to search and autocomplete

ClickMethod = touchpad.rightClickMethod;
LmrTapButtonMap = touchpad.twoFingerTap;
};
Expand Down
Loading