t* dwmstatus for OpenBSD URI git clone git://git.codevoid.de/dwmstatus-sdk DIR Log DIR Files DIR Refs DIR LICENSE --- DIR commit c85db57b426932e6f6a5664ebefa2c6c2d7b559e DIR parent aacfb04966639f402407af14bb8f421c09238f0b URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Sun, 20 May 2018 23:21:02 +0200 Add todo list Diffstat: M dwmstatus.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) --- DIR diff --git a/dwmstatus.c b/dwmstatus.c t@@ -216,14 +216,18 @@ main(void) } for (;;sleep(60)) { - datetime = mktimes("%d.%m.%Y %H:%M", tzberlin); - + // cpu temperature cputemp = smprintf("%i", ZEROCTOC((int)getsysctl("hw.acpi.thermal.tz0.temperature"))); - battery = smprintf("%i", (int)getsysctl("hw.acpi.battery.life")); - - status = smprintf(" CPU:%s°C BAT:%s%% | %s %s", - cputemp, battery, datetime); + // battery + battery = smprintf("%i", getsysctl("hw.acpi.battery.life")); + // audio volume + // IP + (lan speed / wlan ssid) + // free disk space (root/home) + // date and time: done + datetime = mktimes("%d.%m.%Y %H:%M", tzberlin); + // assemble and display + status = smprintf(" CPU:%s°C BAT:%s%% | %s ", cputemp, battery, datetime); setstatus(status); free(battery);