From fdba5341942322288374def59dba0190f6c69119 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 20 Sep 2011 13:22:01 -0400 Subject: several small things, mostly track .conkerorrc --- .wmii/wmiirc_local | 57 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 23 deletions(-) (limited to '.wmii/wmiirc_local') diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local index 07d4544..4b0330e 100755 --- a/.wmii/wmiirc_local +++ b/.wmii/wmiirc_local @@ -1,26 +1,37 @@ -#!/bin/dash +#!/bin/dash -f +# -*- mode: sh; -*- -export WMII_FONT='xft:Monospace-8' -#export WMII_TERM="urxvt" -export WMII_TERM="emacsterm" +# wmiirc file for my HP Pavilion dv6426us laptop -. $HOME/.wmii/wmiirc_local.local -. $HOME/.wmii/wmiirc_solarized_dark +MODKEY=Mod4 -# Use Emacs keybindings, not VI -UP=p -DOWN=n -LEFT=b -RIGHT=f - -local_events() { - cat <<'!' -Menu Client-3-Delete-(kill) - wmiir xwrite /client/$1/ctl kill -Menu Client-3-Kill-(slay) - wmiir xwrite /client/$1/ctl slay -KeyGroup Client actions -Key $MODKEY-x-1 # Toggle selected client's fullscreen state - wmiir xwrite /client/sel/ctl Fullscreen toggle -! -} \ No newline at end of file +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 ' | ' + + #echo -n $(uptime | sed 's/.*://; s/,//g') + + echo -n ' | ' + + echo -n $(date) + + echo -n ' ' + ) + echo "$buffer" +} -- cgit v1.2.3-54-g00ecf