blob: eac35c01ce5a7763641db5e120a74e46e0d696a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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"
|