aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/cpu
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-02-16 12:29:34 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-02-16 12:29:34 +0100
commit9493f0fd32d416ea7458f2a66d8d96ae041166d4 (patch)
treec5df41eece4f186745e18e55f409221a0526bbd9 /ratpoison/panel/cpu
parenteca6abb0b41963cc7fc9ea9a1b365f6c6626fc68 (diff)
downloaddotfiles-9493f0fd32d416ea7458f2a66d8d96ae041166d4.tar.gz
dotfiles-9493f0fd32d416ea7458f2a66d8d96ae041166d4.tar.bz2
dotfiles-9493f0fd32d416ea7458f2a66d8d96ae041166d4.zip
uzbl improvent and cpu in %
Diffstat (limited to 'ratpoison/panel/cpu')
-rwxr-xr-xratpoison/panel/cpu4
1 files changed, 1 insertions, 3 deletions
diff --git a/ratpoison/panel/cpu b/ratpoison/panel/cpu
index 908f207..fe018a5 100755
--- a/ratpoison/panel/cpu
+++ b/ratpoison/panel/cpu
@@ -1,5 +1,3 @@
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;
+mpstat -P ALL 2 1 | grep "Average.*all" | awk '{print "C"$3+$5}'
done