-
Notifications
You must be signed in to change notification settings - Fork 1
/
lcd4linux.conf
154 lines (140 loc) · 2.39 KB
/
lcd4linux.conf
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Variables {
tick 500
tack 100
minute 60000
}
Display SerDispLib {
Driver 'serdisplib'
Port 'USB:060C/04EB'
Model 'ALPHACOOL'
Font '6x8'
Backlight '1'
Rotate '0'
Options ''
}
Widget load1 {
class 'Text'
expression loadavg(1)
prefix 'Load:'
postfix loadavg(1) > 8.0 ? '!' : ' '
width 11
precision 2
align 'R'
update tick
}
Widget load5 {
class 'Text'
expression loadavg(2)
postfix loadavg(2) > 8.0 ? '!' : ' '
width 5
precision 2
align 'R'
update tick
}
Widget load15 {
class 'Text'
expression loadavg(3)
postfix loadavg(3) > 8.0 ? '!' : ' '
width 5
precision 2
align 'R'
update tick
}
Widget cpumodel {
class 'Text'
expression python::exec('get_measuring_value','cpumodel','')
width 40
align 'L'
update tick
}
Widget hostname {
class 'Text'
style 'bold'
expression file::readline('/etc/sysname', 1)
width 40
align 'L'
update tick
}
Widget memused {
class 'Bar'
expression (meminfo('MemTotal')/1024)-(meminfo('MemFree')/1024)-(meminfo('Cached')/1024)
length 40
max meminfo('MemTotal')/1024
style 'H'
direction 'E'
update tick
}
Widget memcached {
class 'Bar'
expression meminfo('Cached')/1024
length 40
max meminfo('MemTotal')/1024
style 'H'
direction 'W'
update tick
}
Widget total {
class 'Text'
prefix 'RAM:'
expression meminfo('MemTotal')/1024
precision 0
width 10
align 'R'
update tick
}
Widget free {
class 'Text'
prefix 'Free:'
expression meminfo('MemFree')/1024
precision 0
width 11
align 'R'
update tick
}
Widget cached {
class 'Text'
prefix 'Cached:'
expression meminfo('cached')/1024
precision 0
width 13
align 'R'
update tick
}
Layout L30x2 {
Row1 {
Col1 'hostname'
}
Row1 {
Col21 'load1'
}
Row1 {
Col32 'load5'
}
Row1 {
Col37 'load15'
}
Row2 {
Col1 'cpumodel'
}
Row3 {
Col1 'memused'
}
Layer 2 {
Row3 {
Col1 'memcached'
}
}
Layer 0 {
Row4 {
Col1 'total'
}
Row4 {
Col14 'free'
}
Row4 {
Col28 'cached'
}
}
}
Display 'SerDispLib'
Layout 'L30x2'