/* delay between each update in seconds */ int delay = 1; #define lb_c0 "%%{F#000000}" #define lb_c1 "%%{F#872011}" #define lb_c2 "%%{F#468622}" #define lb_c3 "%%{F#b58b00}" #define lb_c4 "%%{F#2d6388}" #define lb_c5 "%%{F#71237d}" #define lb_c6 "%%{F#459cab}" #define lb_c7 "%%{F#c6c6c6}" #define lb_c8 "%%{F#303030}" #define lb_c9 "%%{F#dc3a23}" #define lb_c10 "%%{F#67c034}" #define lb_c11 "%%{F#f7be00}" #define lb_c12 "%%{F#4997ce}" #define lb_c13 "%%{F#ba40cc}" #define lb_c14 "%%{F#61d6ea}" #define lb_c15 "%%{F#ffffff}" #define lb_reset "%%{F-}" struct ent ents[] = { /* reorder/remove these as you see fit */ { .fmt = "%%{r}i5 %s'C " lb_c14 "|" lb_reset " ", .read = tempread, .arg = NULL }, { .fmt = "%s ", .read = wifiread, .arg = NULL }, { .fmt = "%s " lb_c14 "|" lb_reset " ", .read = netspeedread, .arg = "trunk0" }, { .fmt = "%s ", .read = battread, .arg = NULL }, { .fmt = "V%s " lb_c14 "|" lb_reset " ", .read = mixread, .arg = NULL }, { .fmt = "%s", .read = dateread, .arg = &(struct datearg){ .fmt = "%a %d %b %T", .tz = "UTC" } }, };