mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +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;
|
example = 64;
|
||||||
description = "The cursor size.";
|
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];
|
home.packages = [cfg.package];
|
||||||
|
|
||||||
xsession.initExtra = ''
|
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 = {
|
xresources.properties = {
|
||||||
|
|
Loading…
Reference in a new issue