about summary refs log tree commit diff
path: root/scripts/dwm-status
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dwm-status')
-rwxr-xr-xscripts/dwm-status9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status
index 9bde75b..f400f34 100755
--- a/scripts/dwm-status
+++ b/scripts/dwm-status
@@ -83,7 +83,14 @@ status() { \
 
 	CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input)
 	CPU_TEMP=$(expr "$CPU_T" / 1000)
-	echo "$CPU_TEMP°C"
+
+	if [ "$CPU_TEMP" -ge 70 ]; then
+		echo " $CPU_TEMP°C"
+	elif [ "$CPU_TEMP" -le 10 ]; then
+		echo " $CPU_TEMP°C"
+	else
+		echo " $CPU_TEMP°C"
+	fi
 
 	echo "$delim"