From 188882e8ad6ae65a3bf6fd5b49a0b1392df027e9 Mon Sep 17 00:00:00 2001 From: Peritia Date: Tue, 3 Mar 2026 09:52:57 +0100 Subject: [PATCH] fix: waybar extra style --- nixosVista/homeManager/waybar/style.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nixosVista/homeManager/waybar/style.nix b/nixosVista/homeManager/waybar/style.nix index 15f2335..b18a27e 100644 --- a/nixosVista/homeManager/waybar/style.nix +++ b/nixosVista/homeManager/waybar/style.nix @@ -487,10 +487,10 @@ ''; ############################################################ - # SELECT PRESET + # BASE STYLE ############################################################ - selectedStyle = + baseStyle = if cfg.style.preset == "default" then defaultStyle else if cfg.style.preset == "translucent" @@ -498,8 +498,15 @@ else if cfg.style.preset == "opaque" then opaqueStyle else ""; + + ############################################################ + # FINAL STYLE + ############################################################ + + finalStyle = baseStyle + cfg.style.extra; in { programs.waybar = lib.mkIf (cfg.enable && cfg.style.preset != "none") { - style = selectedStyle + "\n" + cfg.style.extra; + enable = true; + style = finalStyle; }; }