about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-12 13:28:35 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-12 13:28:35 +0200
commit93242f9507a22a2c8723fd5b3e793325fa15acb3 (patch)
treef89b9801fe4cfc9b26e034f2d5f4e85e849384e5
parentFixed status bar formatting (diff)
downloaddwm-93242f9507a22a2c8723fd5b3e793325fa15acb3.tar.gz
dwm-93242f9507a22a2c8723fd5b3e793325fa15acb3.tar.bz2
dwm-93242f9507a22a2c8723fd5b3e793325fa15acb3.zip
Updated status bar formatting
-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"