commit - e9b9d7ba59f2496ff89c85de31424d5f386a57f1
commit + 97ace6159e6d535692dbd9f49b2422aecaa94e5f
blob - 596bbd3b6e2b4f19707ff97b01731a24f6d28974
blob + c1b40fd80f691ef4993d87e1fc71b3839045cfee
--- bedstatus/bedstatus.c
+++ bedstatus/bedstatus.c
#define SYM_BAT_HALF "\uf242 "
#define SYM_BAT_HIGH "\uf241 "
#define SYM_BAT_FULL "\uf240 "
+#define SYM_TMR "\uf253 "
static size_t pos;
static char buf[256];
now = time (NULL);
diff = timer - now;
- append ("[TMR ");
+ append ("[TMR " SYM_TMR);
if (diff >= 0) {
append_duration (diff);
} else {
- append ("ELAPSED");
+ char elapsed[] = "ELAPSED";
+ elapsed[(-diff % 7) + 1] = '\0';
+ append ("%s", elapsed);
}
append ("] ");