From NuSkooler@21:1/121 to All on Sun Jan 28 19:16:30 2018
Just pushed some new changes to enig 0.0.9-alpha branch that allows very easy custom menu / lightbar items.
The 'items' property of a menu MCI can now be an array of *objects* containing any members you wish. A theme can then use 'itemFormat' and 'focusItemFormat' to render them as you please.
For example - menu.hjson:
VM1: {
items: [
{
firstName: Foo
lastName: Bar
age: 42
}
]
sort: lastName
}
...and in a theme.hjson:
VM1: {
itemFormat: "|07{lastName}|08, |07{firstName} |08- |07{age}"
focusItemFormat: "|15{lastName}|07, |15{firstName} |07- |15{age}"
}