summaryrefslogtreecommitdiff
path: root/.wmii
diff options
context:
space:
mode:
Diffstat (limited to '.wmii')
-rwxr-xr-x.wmii/wmiirc_local2
1 files changed, 1 insertions, 1 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local
index 8e1321c..533b546 100755
--- a/.wmii/wmiirc_local
+++ b/.wmii/wmiirc_local
@@ -21,7 +21,7 @@ status() {
# This doesn't work for me, it shows capacity
#echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;')
# This actually displays %idle
- echo -n 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -u 's/ */\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]'
+ echo -n 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]'
#echo -n ' | '