summaryrefslogtreecommitdiff
path: root/.wmii/wmiirc_local
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/wmiirc_local')
-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"
+}