From 93242f9507a22a2c8723fd5b3e793325fa15acb3 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Wed, 12 Jun 2019 13:28:35 +0200 Subject: Updated status bar formatting --- scripts/dwm-status | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" -- cgit 1.4.1