xcursor: change default cursor option name and value

This commit is contained in:
Adrian Kummerländer 2018-05-06 19:39:03 +02:00
parent babd929c76
commit b84bc09059

View file

@ -27,10 +27,10 @@ let
description = "The cursor size.";
};
cursor = mkOption {
defaultCursor = mkOption {
type = types.str;
default = "X_cursor";
example = "left_ptr";
default = "left_ptr";
example = "X_cursor";
description = "The default cursor file to use within the package.";
};
};
@ -61,7 +61,7 @@ in
home.packages = [cfg.package];
xsession.initExtra = ''
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/${cfg.cursor} ${toString cfg.size}
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/${cfg.defaultCursor} ${toString cfg.size}
'';
xresources.properties = {