From 9493f0fd32d416ea7458f2a66d8d96ae041166d4 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Mon, 16 Feb 2015 12:29:34 +0100 Subject: uzbl improvent and cpu in % --- ratpoison/panel/cpu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ratpoison') 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 -- cgit v1.2.3-54-g00ecf