spoon

set dwm status
git clone git://git.2f30.org/spoon
Log | Files | Refs | LICENSE

commit c2a9bc8050fcea5317bff4a59df25b1e0bb64a23
parent 121956cfc0fa87ba9608d804f3ca044dc57c8d12
Author: lostd <lostd@2f30.org>
Date:   Sun, 15 May 2016 14:12:59 +0100

Polish defaults and add comment

Diffstat:
Mspoon.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/spoon.c b/spoon.c @@ -23,13 +23,11 @@ struct ent { char *fmt; int (*read)(char *, size_t); } ents[] = { - { .fmt = "[%s]", .read = mpdread }, - { .fmt = " ", .read = dummyread }, - { .fmt = "%s%%", .read = battread }, - { .fmt = " ", .read = dummyread }, - { .fmt = "[%s]", .read = xkblayoutread }, - { .fmt = " ", .read = dummyread }, - { .fmt = "%s", .read = dateread }, + /* reorder this if you want */ + { .fmt = " [%s]", .read = mpdread }, + { .fmt = " [%s]", .read = xkblayoutread }, + { .fmt = " [%s%%]", .read = battread }, + { .fmt = " %s", .read = dateread }, }; int