From c2e463cf2f120c6e5abf17c780312406dcbafe6c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 21 Aug 2012 21:45:57 -0400 Subject: wmii continue redo-ing config --- .wmii/wmiirc_local | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) (limited to '.wmii/wmiirc_local') diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local index 616f569..1bcff2c 100644 --- a/.wmii/wmiirc_local +++ b/.wmii/wmiirc_local @@ -1,36 +1,6 @@ -#!/bin/bash +#!/bin/bash this is included, not executed -# wmiirc file for my HP Pavilion dv6426us laptop - -export 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 -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' - - #echo -n ' | ' - - #echo -n $(uptime | sed 's/.*://; s/,//g') - - echo -n ' | ' - - echo -n $(date) - - echo -n ' ' - ) - echo "$buffer" -} +#Action rbar_cpu 01 & +#Action rbar_wifi 97 & +Action rbar_battery 98 & +Action rbar_clock 99 & -- cgit v1.2.3-2-g168b