diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-07-17 00:07:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-07-17 00:07:08 -0400 |
commit | 9399e46640c9c8f690c091f51749a7d3b5511646 (patch) | |
tree | 9e88b7b30be21db9ab561ede4b9777a74a12b995 /.wmii | |
parent | 4dcf99a241f8591b21ce3e8b2dd385cbeb99bbf6 (diff) | |
parent | dbab2a06f142894f446f1f66b637242862dcd7bf (diff) |
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Diffstat (limited to '.wmii')
-rw-r--r-- | .wmii/wmiirc_local | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local new file mode 100644 index 0000000..616f569 --- /dev/null +++ b/.wmii/wmiirc_local @@ -0,0 +1,36 @@ +#!/bin/bash + +# 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" +} |