fix: waybar extra style

This commit is contained in:
Peritia 2026-03-03 09:52:57 +01:00
parent 2407945ef5
commit 188882e8ad

View file

@ -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;
};
}