commit - 069363286eaa434ca1bcea830ed897bd5bca9aac
commit + 04fc60225e5314129901e72eb80e86788db5d39c
blob - a9fd703197692fd2ddc1345fd0b6380fe0b34cd7
blob + 3e826ae5a25a67821578d46aafe411c6226ddc37
--- include/statbar.h
+++ include/statbar.h
#define BATTLOW "\uf243"
#define BATTAC "\uf492"
#define UNKNOWN "\ueb32"
+#define TIMER "\uf520"
#define WIFI "\uf1eb"
#define ETHERNET "\uef09"
extern pid_t start_volume_process(int *pipe_fd);
/* Timer */
-#define TIMER_STRING_SIZE 6
+#define TIMER_STRING_SIZE 12
extern pid_t start_timer_process(int *pipe_fd, int timerval_fd);
blob - ed6199d3b8e92e88017d59b52f59ec2e3e5725b9
blob + bf8a2a7b3eea777fc48924919ce4b4bf4f19daef
--- modules/timer.c
+++ modules/timer.c
_exit(1);
}
- (void)dprintf(timer_pipe[1], "00:00");
+ (void)dprintf(timer_pipe[1], "%s 00:00", TIMER);
while(!should_quit)
{
if (poll(&pfd, 1, INFTIM) > 0)
timespecsub(&init, &elapsed, &display);
if (display.tv_sec == 0)
{
- (void)dprintf(timer_pipe[1], "00:00");
+ (void)dprintf(timer_pipe[1], "%s 00:00", TIMER);
break;
}
else
{
- (void)dprintf(timer_pipe[1], "%02jd:%02jd", (intmax_t)display.tv_sec / 60, (intmax_t)display.tv_sec % 60);
+ (void)dprintf(timer_pipe[1], "%s %02jd:%02jd", TIMER,
+ (intmax_t)display.tv_sec / 60,
+ (intmax_t)display.tv_sec % 60);
}
if (poll(&pfd, 1, 1000) > 0) break;