dotfiles/eww/scripts/cpu
2021-07-10 00:36:21 -04:00

4 lines
149 B
Bash
Executable file

#!/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}'