From 1a471b0a45ac15f1128f2f948b50da2677728164 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 5 May 2018 22:50:08 +0200 Subject: [PATCH] xcursor: add default cursor file option --- modules/xcursor.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/xcursor.nix b/modules/xcursor.nix index bb8af9b78..171586028 100644 --- a/modules/xcursor.nix +++ b/modules/xcursor.nix @@ -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 = {