Skip to content

Commit

Permalink
fix(home-manager/hyprland): import accents from file
Browse files Browse the repository at this point in the history
Ensure accents are defined before user vars
Partially reverts 512306a
  • Loading branch information
Weathercold committed Sep 27, 2024
1 parent 630b559 commit 54c3a50
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/home-manager/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ in
};

wayland.windowManager.hyprland.settings = {
source = [ "${sources.hyprland}/themes/${cfg.flavor}.conf" ];
"$accent" = "\$${cfg.accent}";
"$accentAlpha" = "\$${cfg.accent}Alpha";
source = [
"${sources.hyprland}/themes/${cfg.flavor}.conf"
# Define accents in file to ensure they appear before user vars
(builtins.toFile "hyprland-${cfg.accent}-accent.conf" ''
$accent = ''$${cfg.accent}
$accentAlpha = ''$${cfg.accent}Alpha
'')
];
};
};
}

0 comments on commit 54c3a50

Please sign in to comment.