summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-07 17:12:56 +0530
committerbrustybee <bee@4d2.org>2026-03-07 17:12:56 +0530
commit6b7e27bb07f48031f003557815a1fe0b7450194d (patch)
tree5afb251fa194ec68065958ce5f2f9367dd71e753 /common/modules/matugen/templates
parentf7cb0d04c68e642f7ec601b01e6cddde4030a38e (diff)
Dynamically generate diff variants derived from Nix config.
Diffstat (limited to 'common/modules/matugen/templates')
-rw-r--r--common/modules/matugen/templates/matugen-waybar.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/modules/matugen/templates/matugen-waybar.nix b/common/modules/matugen/templates/matugen-waybar.nix
index add8a09..602a846 100644
--- a/common/modules/matugen/templates/matugen-waybar.nix
+++ b/common/modules/matugen/templates/matugen-waybar.nix
@@ -7,13 +7,16 @@
config = lib.mkIf config.beeMods.mango.waybar {
xdg.configFile."matugen/templates/waybar.css" = {
text = ''
- @define-color bg_panel alpha({{colors.surface.default.hex}}, 0.9);
+ ${lib.optionalString (config.beeMods.mango.window.blur.enable) ''
+ @define-color bg_panel rgba({{colors.surface.default.red}}, {{colors.surface.default.green}}, {{colors.surface.default.blue}}, 0.9);
+ ''}
+ ${lib.optionalString (
+ !config.beeMods.mango.window.blur.enable
+ ) "@define-color bg_panel {{colors.surface.default.hex}}; "}
+
@define-color bg_base transparent;
@define-color border_color {{colors.primary.default.hex}};
@define-color text_main {{colors.primary.default.hex}};
- @define-color text_muted {{colors.primary.default.hex}};
- @define-color text_dim {{colors.primary.default.hex}};
- @define-color text_accent {{colors.primary.default.hex}};
@define-color text_dark {{colors.surface_container_highest.default.hex}};
@define-color alert_urgent {{colors.error.default.hex}};
@define-color alert_minimized {{colors.error_container.default.hex}};