cpu can display load or temp now

This commit is contained in:
Alexander Bocken 2020-11-07 19:07:23 +01:00
parent bd73882755
commit 314a21fcbf
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -7,5 +7,10 @@ case $BLOCK_BUTTON in
- % is of single core." ;;
esac
temp=$(sensors | awk '/Package id 0/ {print "🌡"$4}' | sed 's/\.[0-9]//; s/+//')
[ -n "$temp" ] && echo "$temp"
#TEMPERATURE
#load=$(sensors | awk '/Package id 0/ {print "🌡"$4}' | sed 's/\.[0-9]//; s/+//')
#LOAD PERCENTAGE
load=$(top -n1 | awk 'NR==3 {print "🖩"$2"%"}')
[ -n "$load" ] && echo "$load"