From 211f12c0c1458c44d6dd01b0721de058d961b609 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 15 Jul 2022 18:05:01 +0200 Subject: [PATCH] Temperature control fix sensors add third sensor --- dwmstatus.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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);