aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'ratpoison/panel/cpu')
-rwxr-xr-xratpoison/panel/cpu5
1 files changed, 5 insertions, 0 deletions
diff --git a/ratpoison/panel/cpu b/ratpoison/panel/cpu
new file mode 100755
index 0000000..908f207
--- /dev/null
+++ b/ratpoison/panel/cpu
@@ -0,0 +1,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