git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17592 from Profpatsch/libinput-docs

libinput.accelProfile: improve docs & new default

commit4fb05dc8b9bee1d25005269c12e388558d39d3cd authorRobin Gloster <mail@glob.in> dateMon 8 Aug 2016, 12:34 (10 years ago) parentf242b7585ed3ca
2 files changed+20−8
nixos/doc/manual/release-notes/rl-1609.xml+7 nixos/modules/services/x11/hardware/libinput.nix+13−8
nixos/doc/manual/release-notes/rl-1609.xml+7
@@ -51,6 +51,13 @@ following incompatible changes:</para>
5151 gitlab-run and gitlab-rake scripts because gitlab-runner is a component of Gitlab CI.</para>
5252 </listitem>
5353
54+ <listitem>
55+ <para><literal>services.xserver.libinput.accelProfile</literal> default
56+ changed from <literal>flat</literal> to <literal>adaptive</literal>,
57+ as per <link xlink:href="https://wayland.freedesktop.org/libinput/doc/latest/group__config.html#gad63796972347f318b180e322e35cee79">
58+ official documentation</link>.</para>
59+ </listitem>
60+
5461</itemizedlist>
5562
5663
nixos/modules/services/x11/hardware/libinput.nix+13−8
@@ -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}"