diff options
Diffstat (limited to '.wmii/wmiirc_local')
-rwxr-xr-x | .wmii/wmiirc_local | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local new file mode 100755 index 0000000..eac35c0 --- /dev/null +++ b/.wmii/wmiirc_local @@ -0,0 +1,60 @@ +#!/bin/dash + +MODKEY=Mod4 +export WMII_TERM="urxvt" + + +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" +} + +# Solarized +SOL_BASE03='#002b36' +SOL_BASE02='#073642' +SOL_BASE01='#586e75' +SOL_BASE00='#657b83' +SOL_BASE0='#839496' +SOL_BASE1='#93a1a1' +SOL_BASE2='#eee8d5' +SOL_BASE3='#fdf6e3' +SOL_YELLOW='#b58900' +SOL_ORANGE='#cb4b16' +SOL_RED='#dc322f' +SOL_MAGENTA='#d33682' +SOL_VIOLET='#6c71c4' +SOL_BLUE='#268bd2' +SOL_CYAN='#2aa198' +SOL_GREEN='#859900' + +# Solarized-dark +# ="<text> <background> <border>" +WMII_NORMCOLORS="$SOL_BASE0 $SOL_BASE03 $SOL_BASE02" +WMII_FOCUSCOLORS="$SOL_BASE0 $SOL_BASE02 $SOL_BASE0" +WMII_BACKGROUND="$SOL_BASE02" |