home: wm: i3bar: add 'flatten' call

This makes it easier to declare multiple blocks at once, as will be done
in the next commit.
This commit is contained in:
Bruno BELANYI 2023-12-14 11:41:25 +00:00
parent 1faa8d9acf
commit 33b94a7f9d

View file

@ -17,7 +17,7 @@ in
top = {
icons = "awesome5";
blocks = builtins.filter (attr: attr != { }) [
blocks = builtins.filter (attr: attr != { }) (lib.flatten [
{
block = "music";
# This format seems to remove the block when not playing, somehow
@ -92,7 +92,7 @@ in
format = " $icon $timestamp.datetime(f:'%F %T') ";
interval = 5;
}
];
]);
};
};
};