summaryrefslogtreecommitdiff
path: root/data/templates/system-display/lcdproc.conf.tmpl
blob: 92aee8efea267448d290a582192cb9cf92d03720 (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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
### autogenerated by system-display.py ###

# system display show host (CPU|SMP-CPU|CPU-Graph|Load|Memory|Proc-Size|Disk|Uptime)
#                     network interface <intName> alias <alias>
#                             units (bps|Bps|pps)
#                     clock (big|mini|date-time)

# LCDproc client configuration file

## general options ##
[lcdproc]
# address of the LCDd server to connect to
Server=127.0.0.1

# Port of the server to connect to
Port=13666

# set reporting level
#ReportLevel=2

# report to to syslog ?
ReportToSyslog=true

# run in foreground [default: false; legal: true, false]
#Foreground=true

# PidFile location when running as daemon [default: /var/run/lcdproc.pid]
#PidFile=/var/run/lcdproc.pid

# slow down initial announcement of modes (in 1/100s)
#delay=2


## screen specific configuration options ##
{%- if show %}
# display name for the main menu [default: LCDproc HOST]
DisplayName="{%- if show['title'] %}{{ show['title'] }}{%- else %}VyOS{%- endif %}"

{%- if show['host'] %}

[CPU]
# Show screen
Active={%- if 'cpu' in show['host'] %}true{%- else %}false{%- endif %}
OnTime=1
OffTime=2
ShowInvisible=false

[SMP-CPU]
# Show screen
Active={%- if 'cpu-all' in show['host'] %}true{%- else %}false{%- endif %}

[Memory]
# Show screen
Active={%- if 'memory' in show['host'] %}true{%- else %}false{%- endif %}

[Load]
# Show screen
Active={%- if 'load-hist' in show['host'] %}true{%- else %}false{%- endif %}
# Min Load Avg at which the backlight will be turned off [default: 0.05]
LowLoad=0.05
# Max Load Avg at which the backlight will start blinking [default: 1.3]
HighLoad=1.3

[Uptime]
# Show screen
Active={%- if 'uptime' in show['host'] %}true{%- else %}false{%- endif %}

[CPUGraph]
# Show screen
Active={%- if 'cpu-hist' in show['host'] %}true{%- else %}false{%- endif %}

[ProcSize]
# Show screen
Active={%- if 'proc' in show['host'] %}true{%- else %}false{%- endif %}

[Disk]
# Show screen
Active={%- if 'disk' in show['host'] %}true{%- else %}false{%- endif %}
{%- else %} {# if show['host'] #}
{# Turn off sections that default active #}

[CPU]
Active=false

[Memory]
Active=false

[Load]
Active=false

{%- endif %} {# if show['host'] #}

[TimeDate]
# Show screen
Active={%- if show['clock'] == 'date-time' %}true{%- else %}false{%- endif %}
# time format [default: %H:%M:%S; legal: see strftime(3)]
TimeFormat="%H:%M:%S"
# date format [default: %x; legal: see strftime(3)]
DateFormat="%x"

[BigClock]
# Show screen
Active={%- if show['clock'] == 'big' %}true{%- else %}false{%- endif %}

[MiniClock]
# Show screen
Active={%- if show['clock'] == 'mini' %}true{%- else %}false{%- endif %}
# time format [default: %H:%M; legal: see strftime(3)]
TimeFormat="%H:%M"

{%- if show['network'] %}
[Iface]
# Show screen
Active={%- if show['network']['interface'] %}true{%- else %}false{%- endif %}
{%- for i in show['network']['interface'] %}
# Show stats for Interface {{ i }}
Interface{{ loop.index0 }}={{ i }}
{%- if show['network']['interface'][i]['alias'] %}
# Interface alias name to display [default: <interface name>]
Alias{{ loop.index0 }}={{ show['network']['interface'][i]['alias'] }}
{%- endif %}
{%- endfor %}

# Units to display [default: byte; legal: byte, bit, packet]
{%- if show['network']['units'] == 'bps' %}
unit=bit
{%- elif show['network']['units'] == 'Bps'%}
unit=byte
{%- elif show['network']['units'] == 'pps' %}
unit=packet
{%- else %}
unit=bit
{%- endif %}
# add screen with transferred traffic
#transfer=TRUE
{%- endif %} {# if show['network'] #}

{%- else %}{# if show #}
{# Turn off sections that default active #}

[CPU]
Active=false

[Memory]
Active=false

[Load]
Active=false

[TimeDate]
Active=false
{%- endif %}{# if show #}

[Battery]
# Show screen
Active=false

[About]
# Show screen
Active=false

[OldTime]
# Show screen
Active=false
# time format [default: %H:%M:%S; legal: see strftime(3)]
TimeFormat="%H:%M:%S"
# date format [default: %x; legal: see strftime(3)]
DateFormat="%x"
# Display the title bar in two-line mode. Note that with four lines or more
# the title is always shown. [default: true; legal: true, false]
#ShowTitle=false

# EOF