xcursor: change default cursor option name and value
This commit is contained in:
parent
babd929c76
commit
b84bc09059
|
@ -27,10 +27,10 @@ let
|
||||||
description = "The cursor size.";
|
description = "The cursor size.";
|
||||||
};
|
};
|
||||||
|
|
||||||
cursor = mkOption {
|
defaultCursor = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "X_cursor";
|
default = "left_ptr";
|
||||||
example = "left_ptr";
|
example = "X_cursor";
|
||||||
description = "The default cursor file to use within the package.";
|
description = "The default cursor file to use within the package.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -61,7 +61,7 @@ in
|
||||||
home.packages = [cfg.package];
|
home.packages = [cfg.package];
|
||||||
|
|
||||||
xsession.initExtra = ''
|
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 = {
|
xresources.properties = {
|
||||||
|
|
Loading…
Reference in a new issue