1
0
mirror of https://git.disroot.org/FollieHiyuki/dotfiles.git synced 2024-12-12 00:58:58 -05:00
FollieHiyuki-dotfiles/home/.local/bin/info/cpu

6 lines
111 B
Plaintext
Raw Normal View History

2021-02-13 11:28:59 -05:00
#!/bin/sh
idle=$(printf "%.0f\n" "$(mpstat 1 1 | sed '1,4d;s/.* //')")
cpu=$(( 100 - idle ))
echo "ﰆ $cpu%"