New silcconfig library and server parser. Merged silc-newconfig-final.patch.
[silc.git] / apps / irssi / silc.conf
1 #
2 # Configured servers
3 #
4 servers = (
5   { address = "silc.silcnet.org"; chatnet = SILCNet; port = 706; },
6   { address = "silc.ytti.fi"; chatnet = SILCNet; port = 706; },
7   { address = "silc.peelo.com"; chatnet = SILCNet; port = 706; },
8 );
9
10 #
11 # Configured chat networks
12 #
13 chatnets = {
14   SILCNet = { type = "SILC"; };
15 };
16
17 #
18 # Configured channels
19 #
20 channels = (
21   { name = "#silc"; chatnet = silcnet; autojoin = No; }
22 );
23
24 #
25 # Your favorite aliases
26 #
27 aliases = {
28   JOIN = "join -window";
29   QUERY = "query -window";
30   LEAVE = "part";
31   BYE = "quit";
32   EXIT = "quit";
33   SIGNOFF = "quit";
34   DESCRIBE = "action";
35   DATE = "time";
36   HOST = "userhost";
37   LAST = "lastlog";
38   SAY = "msg *";
39   WHO = "users *";
40   WI = "whois";
41   WII = "whois $0 $0";
42   WW = "whowas";
43   W = "who";
44   N = "names";
45   M = "msg";
46   T = "topic";
47   C = "clear";
48   CL = "clear";
49   K = "kick";
50   KB = "kickban";
51   KN = "knockout";
52   BANS = "ban";
53   B = "ban";
54   MUB = "unban *";
55   UB = "unban";
56   IG = "ignore";
57   UNIG = "unignore";
58   SB = "scrollback";
59   WC = "window close";
60   WN = "window new hide";
61   GOTO = "sb goto";
62   CHAT = "dcc chat";
63   ADMIN = "info";
64   RUN = "SCRIPT LOAD";
65   UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'";
66   CALC = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi";
67 };
68
69 #
70 # Configuration for statusbar and other bars that appear on the screen
71 #
72 statusbar = {
73   # formats:
74   # when using {templates}, the template is shown only if it's argument isn't
75   # empty unless no argument is given. for example {sb} is printed always,
76   # but {sb $T} is printed only if $T isn't empty.
77
78   items = {
79     # start/end text in statusbars
80     barstart = "{sbstart}";
81     barend = "{sbend}";
82
83     # treated "normally", you could change the time/user name to whatever
84     time = "{sb $Z}";
85     user = "{sb $cumode$N{sbmode $usermode}{sbaway $A}}";
86     topic = " $topic";
87
88     # treated specially .. window is printed with non-empty windows,
89     # window_empty is printed with empty windows
90     window = "{sb $winref:$T{sbmode $M}}";
91     window_empty = "{sb $winref{sbservertag $tag}}";
92     prompt = "{prompt $[.15]T}";
93     prompt_empty = "{prompt $winname}";
94
95     # all of these treated specially, they're only displayed when needed
96     lag = "{sb Lag: $0-}";
97     act = "{sb Act: $0-}";
98     more = "-- more --";
99   };
100
101   # there's two type of statusbars. root statusbars are either at the top
102   # of the screen or at the bottom of the screen. window statusbars are at
103   # the top/bottom of each split window in screen.
104   default = {
105     # the "default statusbar" to be displayed at the bottom of the window.
106     # contains all the normal items.
107     window = {
108       # window, root
109       type = "window";
110       # top, bottom
111       placement = "bottom";
112       # number
113       position = "1";
114       # active, inactive, always, never (disables the statusbar)
115       visible = "active";
116
117       # list of items in statusbar in the display order
118       items = {
119         barstart = { priority = "100"; };
120         time = { };
121         user = { };
122         window = { };
123         window_empty = { };
124         lag = { priority = "-1"; };
125         act = { priority = "10"; };
126         more = { priority = "-1"; alignment = "right"; };
127         barend = { priority = "100"; alignment = "right"; };
128       };
129     };
130
131     # statusbar to use in inactive split windows
132     window_inact = {
133       type = "window";
134       placement = "bottom";
135       position = "1";
136       visible = "inactive";
137       items = {
138         barstart = { priority = "100"; };
139         window = { };
140         window_empty = { };
141         more = { priority = "-1"; alignment = "right"; };
142         barend = { priority = "100"; alignment = "right"; };
143       };
144     };
145
146     # we treat input line as yet another statusbar :) It's possible to
147     # add other items before or after the input line item.
148     prompt = {
149       type = "root";
150       placement = "bottom";
151       # we want to be at the bottom always
152       position = "100";
153       visible = "always";
154       items = {
155         prompt = { priority = "-1"; };
156         prompt_empty = { priority = "-1"; };
157         # treated specially, this is the real input line.
158         input = { priority = "10"; };
159       };
160     };
161
162     # topicbar
163     topic = {
164       type = "root";
165       placement = "top";
166       position = "1";
167       visible = "never";
168       items = {
169         barstart = { priority = "100"; };
170         topic = { };
171         barend = { priority = "100"; alignment = "right"; };
172       };
173     };
174   };
175 };
176
177 #
178 # Settings (can be changed with /SET command)
179 #
180 # You can set the default cipher, hash function and HMAC to be used
181 # as setting as well.  You can set it here or use the /SET command.
182 #
183 # Available ciphers are (default: aes-256-cbc):
184 #
185 # aes-256-cbc, aes-192-cbc, aes-128-cbc,
186 # twofish-256-cbc, twofish-192-cbc, twofish-128-cbc,
187 # rc6-256-cbc, rc6-192-cbc, rc6-128-cbc, 
188 # mars-256-cbc, mars-192-cbc, mars-128-cbc,
189 # cast-256-cbc, cast-192-cbc and cast-128-cbc
190 #
191 # Available hash functions are (default: sha1):
192 #
193 # sha1 and md5
194 #
195 # Available HMAC's are (default: hmac-sha1-96):
196 #
197 # hmac-sha1-96, hmac-md5-96, hmac-sha1 and hmac-md5
198 #
199 settings = {
200   "server" = {
201     crypto_default_cipher = "aes-256-cbc";
202     crypto_default_hash = "sha1";
203     crypto_default_hmac = "hmac-sha1-96";
204   };
205   "fe-common/core" = {
206     autocreate_own_query = "no";
207     use_status_window = "no";
208     autoclose_windows = "no";
209     use_msgs_window = "no";
210     autocreate_windows = "no";
211     autocreate_query_level = "none";
212   };
213   "fe-text" = { indent = "8"; };
214 };