dotfiles/eww/scripts/cpu

5 lines
149 B
Text
Raw Normal View History

2021-07-10 00:36:21 -04:00
#!/usr/bin/bash
top -bn1 | grep "Cpu(s)" | awk '{print $2}'
#cat /proc/stat | grep '^cpu ' | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage}'