Branch oldpackages for 14.07
[14.07/packages.git] / utils / anyremote / files / anyremote.cfg
1 %
2 % anyremote configuration file. (Server-mode)
3 %
4
5 % STATUS unknown
6 % XTEST no
7 % SOUND no
8 % ENV no
9
10 GuiAppName=Admin
11 GuiAppType=Example
12 GuiAppBinary=true
13 GuiAppProtocols=Server
14 GuiAppDesc=Show free space on disks, system uptime, dmesg output. Allows to reboot PC.
15
16 [Protocol]=Server
17
18 (Connect)=\
19         ExecAndSet(status,uname -n);\
20         ExecAndSet(title,whoami);\
21         Set(icons,ADMIN,1,plus,2,default,3,default,4,default,5,default,6,default,7,default,8,default,9,default,*,question,0,no,#,default);
22
23 * *=\
24         Set(text,replace,Help,1 - Show list of features)
25
26 Back=\
27         Set(text,close);
28
29 1=\
30         Make(mode,LIST);
31
32
33 [Mode]=LIST
34
35 (EnterMode)=\
36         Macro(ADM_LIST);\
37         Set(menu,replace,Choose);
38         
39 ADM_LIST=\
40         Set(list,replace,Admin,Disk space,Uptime,Dmesg,Reboot,Shutdown);
41
42 DISK_SPACE=\
43         ExecAndSet(text,replace,Free Space,df -kl|tr -s ' '|cut -f 1,4 -d ' ');\
44         Make(mode,TXT);
45
46 UPTIME=\
47         Set(list,close);\
48         ExecAndSet(title,uptime|tr -s ' '|cut -d ' ' -f 3,4,5);\
49         Make(mode,default);
50
51 DMESG=\
52         ExecAndSet(text,replace,Dmesg output, dmesg|tail -50);\
53         Make(mode,TXT);
54
55 REBOOT=\
56         Exec(reboot);
57
58 SHUTDOWN=\
59         Exec(poweroff);
60
61 Back($$)=\
62         Set(list,close);\
63         Make(mode,default);
64
65 Choose(Disk space)=\
66         Macro(DISK_SPACE);
67
68 Choose(Uptime)=\
69         Macro(UPTIME);
70
71 Choose(Dmesg)=\
72         Macro(DMESG);
73
74 Choose(Reboot)=\
75         Macro(REBOOT);
76
77 Choose(Shutdown)=\
78         Macro(SHUTDOWN);
79
80 Push(Disk space)=\
81         Macro(DISK_SPACE);
82         
83 Push(Uptime)=\
84         Macro(UPTIME);
85
86 Push(Dmesg)=\
87         Macro(DMESG);
88
89 Push(Reboot)=\
90         Macro(REBOOT);
91
92 Push(Shutdown)=\
93         Macro(SHUTDOWN);
94
95 [ModeEnd]
96
97 [Mode]=TXT
98
99 Back=\
100         Set(text,close);\
101         Make(mode,LIST);
102
103 [ModeEnd]
104
105 [End]