summaryrefslogtreecommitdiff
path: root/.wmii/wmiirc_local
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/wmiirc_local')
-rwxr-xr-x.wmii/wmiirc_local29
1 files changed, 29 insertions, 0 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local
new file mode 100755
index 0000000..8c1b397
--- /dev/null
+++ b/.wmii/wmiirc_local
@@ -0,0 +1,29 @@
+#!/bin/dash -f
+# -*- mode: sh; -*-
+
+# wmiirc file for my HP Pavilion dv6426us laptop
+
+MODKEY=Mod4
+
+status() {
+ buffer=$(
+ echo -n ' '
+
+ # CPU
+ # 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 -f3,12|sed 's/\t\(.*\)/(\1)/')' ]'
+
+ #echo -n ' | '
+
+ #echo -n $(uptime | sed 's/.*://; s/,//g')
+
+ echo -n ' | '
+
+ echo -n $(date)
+
+ echo -n ' '
+ )
+ echo "$buffer"
+}