dotfiles

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

commit 8c5aedc3a741346d94583dc4352f99d4bd7e27c5
parent 1de0e011f8e291b40723dfe84488195abc447730
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 23 Dec 2021 23:01:30 +0000

.s/d/cpu: better colours

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

diff --git a/.scripts/dwmblocks/cpu b/.scripts/dwmblocks/cpu @@ -4,10 +4,9 @@ tempt=$(acpi -t | awk '{s+=$4} END {print s}') tempc=$(acpi -t | wc -l) temp=$(($tempt/$tempc)) temp="$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" +[ $temp -gt 65 ] && temp="^c#aa0000^$temp" +[ $temp -lt 65 ] && temp="^c#aaaa00^$temp" +[ $temp -lt 55 ] && temp="^c#00aa00^$temp" cpu=$( (