xcursor: add default cursor file option
This commit is contained in:
parent
73b8aa8bcc
commit
1a471b0a45
|
@ -26,6 +26,13 @@ let
|
|||
example = 64;
|
||||
description = "The cursor size.";
|
||||
};
|
||||
|
||||
defaultCursor = mkOption {
|
||||
type = types.str;
|
||||
default = "left_ptr";
|
||||
example = "X_cursor";
|
||||
description = "The default cursor file to use within the package.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -54,7 +61,7 @@ in
|
|||
home.packages = [cfg.package];
|
||||
|
||||
xsession.initExtra = ''
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/X_cursor ${toString cfg.size}
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cfg.package}/share/icons/${cfg.name}/cursors/${cfg.defaultCursor} ${toString cfg.size}
|
||||
'';
|
||||
|
||||
xresources.properties = {
|
||||
|
|
Loading…
Reference in a new issue