mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
home-cursor: set hyprcursor size default (#7145)
This commit is contained in:
parent
d23d20f55d
commit
8cb8a04cb1
1 changed files with 4 additions and 3 deletions
|
|
@ -82,9 +82,10 @@ let
|
|||
enable = mkEnableOption "hyprcursor config generation";
|
||||
|
||||
size = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
type = types.int;
|
||||
example = 32;
|
||||
default = null;
|
||||
default = config.home.pointerCursor.size;
|
||||
defaultText = "config.home.pointerCursor.size";
|
||||
description = "The cursor size for hyprcursor.";
|
||||
};
|
||||
};
|
||||
|
|
@ -239,7 +240,7 @@ in
|
|||
(mkIf cfg.hyprcursor.enable {
|
||||
home.sessionVariables = {
|
||||
HYPRCURSOR_THEME = cfg.name;
|
||||
HYPRCURSOR_SIZE = if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
|
||||
HYPRCURSOR_SIZE = cfg.hyprcursor.size;
|
||||
};
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue