aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/cpu
blob: 908f207c86f1fc9efed0f5bdcc90de2be568d875 (plain)
1
2
3
4
5
while true; do
echo -n 'C'
ps -eo pcpu |grep -vE '^\s*(0.0|%CPU)' |sed -n '1h;$!H;$g;s/\n/ +/gp' | bc
sleep 2;
done