On 9/14/09, Anselm R Garbe <garb...@gmail.com> wrote: > Don't worry, I plan to make symbol a function pointer and then the > layout implementor can return whatever he likes as indicator. [M] > might become [%d]...
if the monitor struct had a char ntext[8] member then the layout algorithm could set it (the layout struct would become a function pointer) this way it's less configurable by the user (layout writer should get the symbol right) static void fancylayout(Monitor *m) { ... snprintf(m->ntext, sizeof m->ntext, "[%.2f]=", m->mfact); and the config would become static const void (*layouts[])(Monitor *) = { tile, NULL, fancylayout, ... not sure how useful this dynamic symbol is..