From 2b69d13fbd411fb9cca50988073874a9f45140b3 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Thu, 29 Aug 2019 13:28:46 +0200 Subject: Fixed temp module part 2 --- scripts/dwm-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dwm-status b/scripts/dwm-status index 4c18374..c110dd6 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -174,8 +174,8 @@ volume(){ } temperature(){ - CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) - CPU_TEMP=$(expr "$CPU_T" / 1000) + CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) + CPU_TEMP=$(expr $CPU_T / 1000) if [ "$CPU_TEMP" -ge 70 ]; then echo "🔥  $CPU_TEMP°C" -- cgit 1.4.1