summaryrefslogtreecommitdiff
path: root/.wmii/wmiirc_local
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/wmiirc_local')
-rwxr-xr-x.wmii/wmiirc_local12
1 files changed, 10 insertions, 2 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local
index 8c1b397..8e1321c 100755
--- a/.wmii/wmiirc_local
+++ b/.wmii/wmiirc_local
@@ -8,12 +8,20 @@ MODKEY=Mod4
status() {
buffer=$(
echo -n ' '
-
+ # Wifi status
+ echo -n 'Wlan0:' $(iwconfig wlan0 | sed 's/ /\n/g' | grep Quality)
+
+ echo -n ' | '
+
+ # Battery charge (not status)
+ echo -n $(acpi -b | sed 's/.*, \{0,2\}\([0-9]\{1,3\}%\),.*/Bat: \1/')
+
+ 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 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -u 's/ */\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]'
#echo -n ' | '