diff --git a/modules/misc/news.nix b/modules/misc/news.nix index 202ab915..7d15af40 100644 --- a/modules/misc/news.nix +++ b/modules/misc/news.nix @@ -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. + ''; + } ]; }; } diff --git a/modules/xcursor.nix b/modules/xcursor.nix index 939dfa55..bb8af9b7 100644 --- a/modules/xcursor.nix +++ b/modules/xcursor.nix @@ -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 + xorg.xcursorthemes contains cursors named + whiteglass, redglass, and handhelds. The package + vanilla-dmz 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; }; - }; }