cpu can display load or temp now
This commit is contained in:
parent
bd73882755
commit
314a21fcbf
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user