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