fix CPU temperature

This commit is contained in:
Václav Uruba 2021-11-27 17:11:02 +01:00
parent 5f018a248e
commit 388bf2213e
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -4,7 +4,7 @@ static const Block blocks[] = {
{"", "echo \"$( < /proc/loadavg cut -f1,2,3 -d ' ')\" \
\"($(mpstat --dec=0 5 1 | tr -s ' ' | grep -i '\\: all' \
| awk -F ' ' '{ print $3 + $4 + $5 }')%, $(sensors \
| grep 'Tdie:' | tr -s ' ' | cut -f2 -d ' ' \
| grep 'CPU:' | tr -s ' ' | cut -f2 -d ' ' \
| cut -c 2-))\" ", 5, 0},
{"", "free -h | awk '/^Minne/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
{"", "echo \"$(cat /sys/class/power_supply/BAT0/capacity)%\" \