mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
home-cursor: add hyprcursor support
Add the option to enable hyprcursor support by setting the relevant environment variables.
This commit is contained in:
parent
8cf9cb2ee7
commit
445d721ecf
1 changed files with 19 additions and 0 deletions
|
@ -45,6 +45,17 @@ let
|
|||
gtk config generation for {option}`home.pointerCursor`
|
||||
'';
|
||||
};
|
||||
|
||||
hyprcursor = {
|
||||
enable = mkEnableOption "hyprcursor config generation";
|
||||
|
||||
size = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
example = 32;
|
||||
default = null;
|
||||
description = "The cursor size for hyprcursor.";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -178,5 +189,13 @@ in {
|
|||
(mkIf cfg.gtk.enable {
|
||||
gtk.cursorTheme = mkDefault { inherit (cfg) package name size; };
|
||||
})
|
||||
|
||||
(mkIf cfg.hyprcursor.enable {
|
||||
home.sessionVariables = {
|
||||
HYPRCURSOR_THEME = cfg.name;
|
||||
HYPRCURSOR_SIZE =
|
||||
if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
|
||||
};
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue