aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/load
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-03-01 14:09:52 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-03-01 14:09:52 +0100
commitdcfd734112dfbff3ad24c6bdbdea46b9f7919369 (patch)
treee1bb4d1eda7cc2a9596ee89f17b177457deb2a10 /ratpoison/panel/load
parent2ae2ab7eed7b47af93a0bc4b49f8cfd70d448f82 (diff)
downloaddotfiles-dcfd734112dfbff3ad24c6bdbdea46b9f7919369.tar.gz
dotfiles-dcfd734112dfbff3ad24c6bdbdea46b9f7919369.tar.bz2
dotfiles-dcfd734112dfbff3ad24c6bdbdea46b9f7919369.zip
firefox + panel update
Diffstat (limited to 'ratpoison/panel/load')
-rwxr-xr-xratpoison/panel/load7
1 files changed, 7 insertions, 0 deletions
diff --git a/ratpoison/panel/load b/ratpoison/panel/load
new file mode 100755
index 0000000..3977bee
--- /dev/null
+++ b/ratpoison/panel/load
@@ -0,0 +1,7 @@
+#!/bin/bash
+while true; do
+cpu=`mpstat -P ALL 2 1 | grep "Average.*all" | awk '{print $3+$5}'`
+mem=`free | grep Mem | awk '{print $3/$2 * 100.0}'`
+printf "C%.*f\n" 1 $cpu
+printf "R%.*f\n" 0 $mem
+done