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:
parent
1faa8d9acf
commit
33b94a7f9d
|
@ -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;
|
||||
}
|
||||
];
|
||||
]);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue