about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-29 13:28:46 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-29 13:28:46 +0200
commit2b69d13fbd411fb9cca50988073874a9f45140b3 (patch)
treef6472a000e1cb29aef614edc46d5bcab3d645002
parentFixed temp module (diff)
downloaddwm-2b69d13fbd411fb9cca50988073874a9f45140b3.tar.gz
dwm-2b69d13fbd411fb9cca50988073874a9f45140b3.tar.bz2
dwm-2b69d13fbd411fb9cca50988073874a9f45140b3.zip
Fixed temp module part 2
-rwxr-xr-xscripts/dwm-status4
1 files 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"