summaryrefslogtreecommitdiff
path: root/utilities/LCDproc/lcdexec.conf
blob: a9422ed0523d59df6a9ea80487dd5acb01fca1de (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
# lcdexec LCDproc client configuration file 

## general options for lcdexec ##
[lcdexec]
# address of the LCDd server to connect to
Address=localhost

# Port of the server to connect to
Port=13666

# set reporting level
ReportLevel=2

# report to to syslog ?
ReportToSyslog=false

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

# display name for the main menu [default: lcdexec HOST]
DisplayName=lcdexec


# main menu definition
[MainMenu]
Entry=MenuA
Entry=MenuB

# menu definition
[MenuA]
DisplayName="VDR"
Entry=CmdA
Entry=CmdB
Entry=CmdC

[CmdA]
DisplayName="VDR neustarten"
Exec="/usr/lib/vdr/scripts/vdr2root vdr-restart"

[CmdB]
DisplayName="VDR starten"
Exec="/usr/lib/vdr/scripts/vdr2root vdr-start"

[CmdC]
DisplayName="VDR beenden"
Exec="/usr/lib/vdr/scripts/vdr2root vdr-stop"

# menu definition
[MenuB]
DisplayName="System"
Entry=CmdD
Entry=CmdE

[CmdD]
DisplayName="System beenden"
Exec="/usr/lib/vdr/scripts/vdr2root shutdown"

[CmdE]
DisplayName="System neustarten"
Exec="/usr/lib/vdr/scripts/vdr2root reboot"


# Further Extensions:
# - shell selectable in command sections
# - type definitions instead implicit depending on Exec/Entry
#   (the latter only as fallback)
# - use input for parameters e.g. IP-Adresses, Sliders
#   e.g. Exec="ifconfig ${IF} ${IP} netmask ${MASK} broadcast ${BCAST}"
#   where
#   - ${IF} is the result of a selection input screen
#   - ${IP}, ${MASK}n ${BCAST} are the results of IP input screens
# - display result if a command on the display
# - jump to other menus depending on the output/result of a command

# EOF