test: waybar extra style
This commit is contained in:
parent
abcf8cb092
commit
de5a79214a
2 changed files with 7 additions and 2 deletions
|
|
@ -96,7 +96,6 @@
|
||||||
finalSettings = baseSettings // cfg.settings.extra;
|
finalSettings = baseSettings // cfg.settings.extra;
|
||||||
in {
|
in {
|
||||||
programs.waybar = lib.mkIf (cfg.enable && cfg.style.preset != "none") {
|
programs.waybar = lib.mkIf (cfg.enable && cfg.style.preset != "none") {
|
||||||
enable = true;
|
style = selectedStyle + "\n" + cfg.style.extra;
|
||||||
settings = [finalSettings];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,12 @@ with lib; {
|
||||||
description = "Waybar visual preset.";
|
description = "Waybar visual preset.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
style.extra = lib.mkOption {
|
||||||
|
type = lib.types.lines;
|
||||||
|
default = "";
|
||||||
|
description = "Additional CSS appended to the selected Waybar preset.";
|
||||||
|
};
|
||||||
|
|
||||||
settings.extra = mkOption {
|
settings.extra = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = {};
|
default = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue