waybar: fix by specifying bars as list instead of attrs (wtf home-manager?)
This commit is contained in:
parent
fd19802e91
commit
ed70e045cb
|
@ -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;
|
||||||
waybar-config-text = (pkgs.formats.json {}).generate "waybar-config.json" waybar-config;
|
waybar-config-text = (pkgs.formats.json {}).generate "waybar-config.json" waybar-config;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in New Issue
Block a user