@@ -25,16 +25,21 @@ in {
2525
2626 accelProfile = mkOption {
2727 type = types.enum [ "flat" "adaptive" ];
28− default = "flat";
29− example = "adaptive";
28+ default = "adaptive";
29+ example = "flat";
3030 description =
3131 ''
32− Sets the pointer acceleration profile to the given profile. Permitted values are adaptive, flat.
33− Not all devices support this option or all profiles. If a profile is unsupported, the default profile
34− for this is used. For a description on the profiles and their behavior, see the libinput documentation.
32+ Sets the pointer acceleration profile to the given profile.
33+ Permitted values are adaptive, flat.
34+ Not all devices support this option or all profiles.
35+ If a profile is unsupported, the default profile for this is used.
36+ <literal>flat</literal>: Pointer motion is accelerated by a constant
37+ (device-specific) factor, depending on the current speed.
38+ <literal>adaptive</literal>: Pointer acceleration depends on the input speed.
39+ This is the default profile for most devices.
3540 '';
36− };
37−
41+ };
42+
3843 accelSpeed = mkOption {
3944 type = types.nullOr types.string;
4045 default = null;
@@ -216,7 +221,7 @@ in {
216221 Option "LeftHanded" "${xorgBool cfg.leftHanded}"
217222 Option "MiddleEmulation" "${xorgBool cfg.middleEmulation}"
218223 Option "NaturalScrolling" "${xorgBool cfg.naturalScrolling}"
219− ${optionalString (cfg.scrollButton != null) ''Option "ScrollButton" "${cfg.scrollButton}"''}
224+ ${optionalString (cfg.scrollButton != null) ''Option "ScrollButton" "${toString cfg.scrollButton}"''}
220225 Option "ScrollMethod" "${cfg.scrollMethod}"
221226 Option "HorizontalScrolling" "${xorgBool cfg.horizontalScrolling}"
222227 Option "SendEventsMode" "${cfg.sendEventsMode}"