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." ;;
|
- % is of single core." ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
temp=$(sensors | awk '/Package id 0/ {print "🌡"$4}' | sed 's/\.[0-9]//; s/+//')
|
#TEMPERATURE
|
||||||
[ -n "$temp" ] && echo "$temp"
|
#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…
x
Reference in New Issue
Block a user