summaryrefslogtreecommitdiff
path: root/.wmii
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-20 13:22:01 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-20 13:22:01 -0400
commitfdba5341942322288374def59dba0190f6c69119 (patch)
tree8b98b872a34f223230153d203a64ece626b19ea7 /.wmii
parent191bf47e50199f56a0e436e58133fe840f75b5f6 (diff)
several small things, mostly track .conkerorrc
Diffstat (limited to '.wmii')
-rwxr-xr-x.wmii/wmiirc_local57
1 files changed, 34 insertions, 23 deletions
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"
+}