xcursor: apply naming and doc tips; add news item

This commit is contained in:
Christopher League 2018-02-04 18:07:39 -05:00
parent ca5e2fa06a
commit d3edbfefc4
2 changed files with 19 additions and 7 deletions

View file

@ -543,6 +543,17 @@ in
The old module will be removed on February 25, 2018.
'';
}
{
time = "2018-02-04T22:58:49+00:00";
condition = config.xsession.enable;
message = ''
A new option 'xsession.pointerCursor' is now available. It
allows specifying the pointer cursor theme and size. The
settings will be applied in the xsession, Xresources, and
GTK configuration.
'';
}
];
};
}

View file

@ -4,7 +4,7 @@ with lib;
let
cfg = config.xcursor;
cfg = config.xsession.pointerCursor;
cursorType = types.submodule {
options = {
@ -35,14 +35,16 @@ in
meta.maintainers = [ maintainers.league ];
options = {
xcursor = mkOption {
xsession.pointerCursor = mkOption {
type = types.nullOr cursorType;
default = null;
description = ''
The X cursor theme and settings. There package pkgs.xorg.xcursorthemes
contains cursors named whiteglass, redglass, and handhelds. The package
pkgs.vanilla-dmz contains cursors named Vanilla-DMZ and Vanilla-DMZ-AA.
Note: handhelds does not seem to work at custom sizes.
The X cursor theme and settings. The package
<varname>xorg.xcursorthemes</varname> contains cursors named
whiteglass, redglass, and handhelds. The package
<varname>vanilla-dmz</varname> contains cursors named Vanilla-DMZ
and Vanilla-DMZ-AA. Note: handhelds does not seem to work at
custom sizes.
'';
};
};
@ -70,6 +72,5 @@ in
"gtk-cursor-theme-size" = cfg.size;
};
};
}