commit 1dfe57f283d32f7fc55e910faacdf64df05f09ef parent 1a7bacddea272151c1c8153508d8fb87d6d16035 Author: clamiax <smoppy@gmail.com> Date: Tue, 10 Feb 2015 08:19:20 +0100 Upgrade gettemp() to match new /sys tree. Diffstat:
M | dwmstatus | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dwmstatus b/dwmstatus @@ -38,7 +38,8 @@ getfreqs() { } gettemp() { - t=$(cat /sys/class/hwmon/hwmon*/device/temp1_input) + # XXX handle more sensors + t=$(cat /sys/class/hwmon/hwmon*/temp1_input |head -1) t=$(echo $t / 1000 |bc) r=$(printf "%d" $t) echo "${r}C"