Touchpad
This commit is contained in:
parent
75de9ca7d0
commit
aed5e4c057
|
@ -10,6 +10,15 @@ in {
|
||||||
|
|
||||||
touchpad.enableProperConfig = mkEnableOption "Enable the only correct touchpad settings";
|
touchpad.enableProperConfig = mkEnableOption "Enable the only correct touchpad settings";
|
||||||
|
|
||||||
|
touchpad.accelProfile = mkOption {
|
||||||
|
type = types.enum [ "flat" "adaptive" ];
|
||||||
|
default = "adaptive";
|
||||||
|
example = "flat";
|
||||||
|
description = ''
|
||||||
|
Usually want this on adaptive.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
mouse.accelProfile = mkOption {
|
mouse.accelProfile = mkOption {
|
||||||
type = types.enum [ "flat" "adaptive" ];
|
type = types.enum [ "flat" "adaptive" ];
|
||||||
default = "flat";
|
default = "flat";
|
||||||
|
@ -59,6 +68,7 @@ in {
|
||||||
accelProfile = cfg.mouse.accelProfile;
|
accelProfile = cfg.mouse.accelProfile;
|
||||||
middleEmulation = false;
|
middleEmulation = false;
|
||||||
};
|
};
|
||||||
|
touchpad.accelProfile = cfg.touchpad.accelProfile;
|
||||||
touchpad = mkIf cfg.touchpad.enableProperConfig {
|
touchpad = mkIf cfg.touchpad.enableProperConfig {
|
||||||
tapping = false;
|
tapping = false;
|
||||||
disableWhileTyping = true;
|
disableWhileTyping = true;
|
||||||
|
|
Loading…
Reference in a new issue