mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
xcursor: add default cursor file option
This commit is contained in:
parent
73b8aa8bcc
commit
1a471b0a45
1 changed files with 8 additions and 1 deletions
|
@ -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