dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit bc99dd8832bcda882f2284b148f2dfee3eef9efe
parent da064a4076bb675ca14f1c7e9ac5d74d8a4d6c99
Author: hhvn <dev@haydenvh.com>
Date:   Tue,  2 Mar 2021 13:03:41 +0000

.scripts/dwmblocks/cpu: more useful colour ranges

Diffstat:
M.scripts/dwmblocks/cpu | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.scripts/dwmblocks/cpu b/.scripts/dwmblocks/cpu @@ -5,8 +5,8 @@ tempt=$(acpi -t | awk '{s+=$4} END {print s}') tempc=$(acpi -t | wc -l) temp=$(($tempt/$tempc)) temp=" $temp" -[ $temp -gt 60 ] && [ ! $temp -gt 70 ] && temp="^c#aa7700^$temp" -[ $temp -gt 70 ] && temp="^c#aa0000^$temp" -[ $temp -lt 60 ] && temp="^c#aaaa00^$temp" +[ $temp -gt 55 ] && [ ! $temp -gt 70 ] && temp="^c#aa7700^$temp" +[ $temp -gt 60 ] && temp="^c#aa0000^$temp" +[ $temp -lt 55 ] && temp="^c#aaaa00^$temp" [ $temp -lt 50 ] && temp="^c#00aa00^$temp" echo "[C $cpu%${temp}C]"