waybar: fix by specifying bars as list instead of attrs (wtf home-manager?)

This commit is contained in:
2023-01-29 08:03:20 +00:00
parent 64b517f8c0
commit cd9e81c632

View File

@@ -6,8 +6,8 @@ let
cfg = config.sane.gui.sway; cfg = config.sane.gui.sway;
# docs: https://github.com/Alexays/Waybar/wiki/Configuration # docs: https://github.com/Alexays/Waybar/wiki/Configuration
# format specifiers: https://fmt.dev/latest/syntax.html#syntax # format specifiers: https://fmt.dev/latest/syntax.html#syntax
waybar-config = { waybar-config = [
mainBar = { { # TOP BAR
layer = "top"; layer = "top";
height = 40; height = 40;
modules-left = ["sway/workspaces" "sway/mode"]; modules-left = ["sway/workspaces" "sway/mode"];
@@ -68,8 +68,8 @@ let
clock = { clock = {
format-alt = "{:%a, %d. %b %H:%M}"; format-alt = "{:%a, %d. %b %H:%M}";
}; };
}; }
}; ];
waybar-config-text = lib.generators.toJSON {} waybar-config; waybar-config-text = lib.generators.toJSON {} waybar-config;
in in
{ {