mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
/proc/stat parsing finished git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@319 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
90 lines
1.2 KiB
Plaintext
90 lines
1.2 KiB
Plaintext
Display LK204 {
|
|
Driver 'MatrixOrbital'
|
|
Model 'LK204-24-USB'
|
|
Port '/dev/usb/tts/0'
|
|
Port '/dev/tts/0'
|
|
Speed 19200
|
|
Contrast 256/2
|
|
}
|
|
|
|
Widget OS {
|
|
class 'Text'
|
|
expression '*** '.uname('sysname').' '.uname('release').' ***'
|
|
width 20
|
|
align 'C'
|
|
update tick
|
|
}
|
|
|
|
Widget CPU {
|
|
class 'Text'
|
|
expression uname('machine')
|
|
prefix 'CPU '
|
|
width 9
|
|
align 'L'
|
|
update tick
|
|
}
|
|
|
|
|
|
Widget RAM {
|
|
class 'Text'
|
|
expression meminfo('MemTotal')/1024
|
|
postfix ' MB RAM'
|
|
width 11
|
|
precision 0
|
|
align 'R'
|
|
update tick
|
|
}
|
|
|
|
Widget Busy {
|
|
class 'Text'
|
|
expression cpu('busy', 500)
|
|
prefix 'Busy '
|
|
postfix '%'
|
|
width 10
|
|
precision 1
|
|
align 'R'
|
|
update tick
|
|
}
|
|
|
|
Widget Load {
|
|
class 'Text'
|
|
expression loadavg(1)
|
|
prefix 'Load'
|
|
postfix loadavg(1)>1.0?'!':' '
|
|
width 10
|
|
precision 2
|
|
align 'R'
|
|
update tack
|
|
}
|
|
|
|
|
|
Layout Default {
|
|
Row1 {
|
|
Col1 'OS'
|
|
}
|
|
Row2 {
|
|
Col1 'CPU'
|
|
Col10 'RAM'
|
|
}
|
|
Row3 {
|
|
Col1 'Busy'
|
|
}
|
|
Row4 {
|
|
Col1 'Load'
|
|
}
|
|
}
|
|
|
|
|
|
Display 'LK204'
|
|
Layout 'Default'
|
|
|
|
#Row1 "*** %o %v ***"
|
|
#Row2 "%p CPU %r MB RAM"
|
|
#Row3 "Busy %cb%% $r10cs+cb"
|
|
#Row4 "Load%l1%L$r10l1"
|
|
|
|
Variables {
|
|
tick 500
|
|
tack 100
|
|
}
|