# $Id: lcd4linux.conf.sample 1194 2013-02-13 15:15:34Z volker $
# $URL:
Link ist nicht mehr aktiv. $
Layout 'cracksLCD'
Display 'SamsungSPF'
Display SamsungSPF {
Driver 'SamsungSPF'
Model 'spf-75h'
Font '15x18'
Update 100
Foreground white
Background black
Basecolor black
}
Variables {
# tick 500
# tack 1000
# netup 448 # define your inet upstream
# netdown 3456 # define your inet downstream
time_minute 60000
time_second 1000
time_tick second
time_faster 0.5
color_black '000000'
color_white 'ffffff'
color_blue '000066'
color_green '008000'
color_red '800000'
color_transparent 'ffffff00'
color_lighter 'ffffff80'
color_darker '00000080'
color_fg 'ffffff'
color_bg '00000044'
color_bar_fg 'ffffff'
color_bar_bg '00000044'
color_bar1 '5f5fff'
color_bar2 'ff5f5f'
width_full 53
width_half 24
width_logo 29
black '000000'
white 'ffffff'
green '55ba0b'
blue '3c85c3'
orange 'f9b31d'
red 'ff0101'
}
Widget block {
class 'Text'
expression '|'
width 1
align 'L'
}
Widget line {
class 'Text'
expression '---------------------------------------------------'
width 51
align 'L'
}
Widget textline {
class 'Text'
expression '+++
Sie müssen registriert sein, um Links zu sehen.
+++'
style 'bold'
width 51
align 'C'
}
Widget OS {
class 'Text'
#expression uname('release') - uname('machine')
expression file::readline('/tmp/oscamstatus', 1)
width width_full
align 'C'
speed 100
update time_minute
background color_green
}
Widget TIME {
class 'Text'
expression strftime('%a, %d.%m.%Y %H:%M:%S', time()) . ' | Up: ' . uptime('%dT %H:%M:%S')
width width_full
align 'C'
update time_second
background color_black
foreground color_white
}
Widget RAM {
class 'Text'
expression (floor(meminfo('MemFree')*10/1024)/10).' / '.(floor(meminfo('MemTotal')*10/1024)/10)
prefix 'RAM'
postfix ' MB'
width width_half
#precision 0
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Busy'
postfix '%'
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 500)
expression2 proc_stat::cpu('system', 500)
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Load {
class 'Text'
expression loadavg(1)
prefix 'Load'
postfix loadavg(1)>1.0?'!':' '
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget LoadBar {
class 'Bar'
expression loadavg(1)
max 5.0
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Disk {
class 'Text'
expression (diskstats('sd[a-z]$', 'read_sectors', 500) + diskstats('sd[a-z]$', 'write_sectors', 500)) / 2048
prefix 'Disk'
postfix ' MB/s'
width width_half
precision 3
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget DiskBar {
class 'Bar'
expression diskstats('sd[a-z]$', 'read_sectors', 500)
expression2 diskstats('sd[a-z]$', 'write_sectors', 500)
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Eth0 {
class 'Text'
expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024/1024
prefix 'eth0'
postfix ' MB/s'
width width_half
precision 3
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget Eth0Bar {
class 'Bar'
expression netdev('eth0', 'Rx_bytes', 500)
expression2 netdev('eth0', 'Tx_bytes', 500)
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
# OSCam
Widget OSCAMTEXT {
class 'Text'
expression '+++ OScam LCD-Status Anzeige +++'
Background blue
style 'bold'
width 51
align 'C'
}
Widget OSCAMVERSION {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 1)
width width_full
align 'L'
update time_minute
style 'bold'
Background blue
}
Widget OSCAMREVISION {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 2)
width width_half
align 'R'
update time_minute
style 'bold'
Background blue
}
Widget OSCAMREADER {
class 'Text'
expression file::readline('/tmp/oscamstatus', 5)
width width_half
align 'L'
update 10000
style 'bold'
#Foreground 'FF6633'
#Background blue
}
Widget OSCAMUSER {
class 'Text'
expression file::readline('/tmp/oscamstatus', 4)
width width_half
align 'R'
update 10000
style 'bold'
#Foreground 'FF6633'
#Background blue
}
Widget OSCAMSERVER {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 5)
width width_half
align 'L'
update 10000
style 'bold'
#Foreground 'FF6633'
Background blue
}
#Reader
Widget RDR00 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 6)
width width_full
align 'L'
style 'bold'
update 10000
}
Widget RDR01 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 7)
width width_full
align 'L'
update 10000
}
Widget RDR0 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 8)
width width_full
align 'L'
update 10000
}
Widget RDR1 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 9)
width width_full
align 'L'
update 10000
}
Widget RDR2 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 10)
width width_full
align 'L'
update 10000
}
Widget RDR3 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 11)
width width_full
align 'L'
update 10000
}
Widget RDR4 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 12)
width width_full
align 'L'
update 10000
}
Widget RDR5 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 13)
width width_full
align 'L'
update 10000
}
Widget RDR6 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 14)
width width_full
align 'L'
update 10000
}
Widget RDR7 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 15)
width width_full
align 'L'
update 10000
}
#USER
Widget USR00 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 16)
width width_full
align 'L'
update 10000
}
Widget USR01 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 17)
width width_full
align 'L'
update 10000
}
Widget USR0 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 18)
width width_full
align 'L'
update 10000
}
Widget USR1 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 19)
width width_full
align 'L'
update 10000
}
Widget USR2 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 20)
width width_full
align 'C'
update 10000
}
Widget USR3 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 21)
width width_full
align 'C'
update 10000
}
Widget USR4 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 22)
width width_full
align 'C'
update 10000
}
Widget USR5 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 23)
width width_full
align 'L'
update 10000
}
Widget USR6 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 24)
width width_full
align 'L'
update 10000
}
Widget USR7 {
class 'Text'
expression file::readline('/tmp/.oscam/oscam.lcd', 25)
width width_full
align 'L'
update 10000
}
###########################
Layout cracksLCD {
Row06.Col02 'line'
########System Anzeige############
Row02.Col02 'Busy'
Row03.Col02 'BusyBar'
Row04.Col02 'Load'
Row05.Col02 'LoadBar'
Row02.Col29 'Disk'
Row03.Col29 'DiskBar'
Row04.Col29 'Eth0'
Row05.Col29 'Eth0Bar'
#########Oscam Bereich#############
#Row10.Col02 'OSCAMTEXT'
Row07.Col02 'OSCAMVERSION'
Row07.Col29 'OSCAMREVISION'
Row09.Col02 'OSCAMREADER'
Row09.Col29 'OSCAMUSER'
#Reader
Row10.Col02 'RDR00'
Row11.Col02 'RDR01'
Row12.Col02 'RDR0'
Row13.Col02 'RDR1'
Row14.Col02 'RDR2'
Row15.Col02 'RDR3'
Row16.Col02 'RDR4'
Row17.Col02 'RDR5'
Row18.Col02 'RDR6'
Row19.Col02 'RDR7'
#User
Row20.Col02 'USR00'
Row21.Col02 'USR01'
Row22.Col02 'USR0'
Row23.Col02 'USR1'
Row24.Col02 'USR2'
Row25.Col02 'USR3'
Row26.Col02 'USR4'
Row27.Col02 'USR5'
Row28.Col02 'USR6'
Row29.Col02 'USR7'