xcursor: apply naming and doc tips; add news item
This commit is contained in:
parent
ca5e2fa06a
commit
d3edbfefc4
|
@ -543,6 +543,17 @@ in
|
||||||
The old module will be removed on February 25, 2018.
|
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.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.xcursor;
|
cfg = config.xsession.pointerCursor;
|
||||||
|
|
||||||
cursorType = types.submodule {
|
cursorType = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -35,14 +35,16 @@ in
|
||||||
meta.maintainers = [ maintainers.league ];
|
meta.maintainers = [ maintainers.league ];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
xcursor = mkOption {
|
xsession.pointerCursor = mkOption {
|
||||||
type = types.nullOr cursorType;
|
type = types.nullOr cursorType;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
The X cursor theme and settings. There package pkgs.xorg.xcursorthemes
|
The X cursor theme and settings. The package
|
||||||
contains cursors named whiteglass, redglass, and handhelds. The package
|
<varname>xorg.xcursorthemes</varname> contains cursors named
|
||||||
pkgs.vanilla-dmz contains cursors named Vanilla-DMZ and Vanilla-DMZ-AA.
|
whiteglass, redglass, and handhelds. The package
|
||||||
Note: handhelds does not seem to work at custom sizes.
|
<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;
|
"gtk-cursor-theme-size" = cfg.size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue