xcursor: add default cursor file option

This commit is contained in:
Adrian Kummerlaender 2018-05-05 22:50:08 +02:00 committed by Robert Helgesson
parent 73b8aa8bcc
commit 1a471b0a45
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 = {