From 3d4a42a35204fc8860d9a2a7daf6d78149fad780 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 14 Aug 2013 16:14:16 -0400 Subject: add .config/wmii-hg for bleeding wmii --- .config/wmii-hg/rbar_cpu | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .config/wmii-hg/rbar_cpu (limited to '.config/wmii-hg/rbar_cpu') diff --git a/.config/wmii-hg/rbar_cpu b/.config/wmii-hg/rbar_cpu new file mode 100755 index 0000000..5531e60 --- /dev/null +++ b/.config/wmii-hg/rbar_cpu @@ -0,0 +1,12 @@ +#!/bin/bash +. include.sh + +priority=$1 + +while connected_to_x_server; do + # This doesn't work for me, it shows capacity + #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') >> "$WMII_DIR/rbar/${priority}_cpu" + # This actually displays %idle + echo 'label CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' >> "$WMII_DIR/rbar/${priority}_cpu" + sleep 1 +done -- cgit v1.2.3-54-g00ecf