diff --git a/dwmstatus.c b/dwmstatus.c index a921813..094f022 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -181,7 +181,7 @@ main(void) char *status; char *avgs; char *tmbln; - char *t0, *t1; + char *t0, *t1, *t2; char *bat; if (!(dpy = XOpenDisplay(NULL))) { @@ -192,12 +192,13 @@ main(void) for (;;sleep(60)) { avgs = loadavg(); tmbln = mktimes("%a %d %b %H:%M %Z %Y", tzberlin); - t0 = gettemperature("/sys/class//hwmon/hwmon0", "temp1_input"); - t1 = gettemperature("/sys/class//hwmon/hwmon2", "temp1_input"); + t0 = gettemperature("/sys/class//hwmon/hwmon1", "temp1_input"); + t1 = gettemperature("/sys/class//hwmon/hwmon3", "temp1_input"); + t2 = gettemperature("/sys/class//hwmon/hwmon6", "temp1_input"); bat = getbattery("/sys/class/power_supply/BAT0"); - status = smprintf("Bat: %s | Temp: %s, %s | Load: %s | %s", - bat, t0, t1, avgs, tmbln); + status = smprintf("Bat: %s | Temp: %s, %s, %s | Load: %s | %s", + bat, t0, t1, t2, avgs, tmbln); setstatus(status); free(t0);