about summary refs log tree commit diff
diff options
context:
space:
mode:
-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"