Merged from silc_1_0_branch.
[silc.git] / apps / irssi / silc.conf
1 #
2 # Configured servers
3 #
4 # silc.silcnet.org is DNS round robin for all (currently) known public SILCNet servers.
5 #
6 servers = (
7   { address = "silc.silcnet.org"; chatnet = SILCNet; port = 706; autoconnect = "yes"; }
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 # Keyboard bindings (BIND command)
26 #
27 keyboard = (
28   { key = "meta-K"; id = "command"; data = "key channel * change"; }
29 ); 
30
31 #
32 # Your favorite aliases
33 #
34 aliases = {
35   LEAVE = "part";
36   BYE = "quit";
37   EXIT = "quit";
38   SIGNOFF = "quit";
39   DESCRIBE = "action";
40   LAST = "lastlog";
41   SAY = "msg *";
42   WHO = "users *";
43   WI = "whois";
44   WII = "whois $0 $0";
45   WW = "whowas";
46   W = "who";
47   N = "names";
48   M = "msg";
49   T = "topic";
50   C = "clear";
51   CL = "clear";
52   K = "kick";
53   KB = "kickban";
54   KN = "knockout";
55   BANS = "ban";
56   B = "ban";
57   IG = "ignore";
58   UNIG = "unignore";
59   SB = "scrollback";
60   WC = "window close";
61   WN = "window new hide";
62   GOTO = "sb goto";
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   SBAR = "STATUSBAR";
68   Q = "QUERY";
69   MOOD = "ATTR status_mood";
70   OP = "CUMODE $C +o";
71   DEOP = "CUMODE $C -o";
72 };
73
74 #
75 # Configuration for statusbar and other bars that appear on the screen
76 #
77 statusbar = {
78   # formats:
79   # when using {templates}, the template is shown only if it's argument isn't
80   # empty unless no argument is given. for example {sb} is printed always,
81   # but {sb $T} is printed only if $T isn't empty.
82
83   items = {
84     # start/end text in statusbars
85     barstart = "{sbstart}";
86     barend = "{sbend}";
87
88     # treated "normally", you could change the time/user name to whatever
89     time = "{sb $Z}";
90     user = "{sb $cumode$N{sbaway $A}}";
91     usermode = " {sbusermode $usermode}";
92     topic = " $topic";
93     topic_empty = " Irssi v$J - http://irssi.org/help/";
94
95     # treated specially .. window is printed with non-empty windows,
96     # window_empty is printed with empty windows
97     window = "{sb $winref:$T{sbmode $M}}";
98     window_empty = "{sb $winref{sbservertag $tag}}";
99     prompt = "{prompt $[.15]T}";
100     prompt_empty = "{prompt $winname}";
101
102     # all of these treated specially, they're only displayed when needed
103     lag = "{sb Lag: $0-}";
104     act = "{sb Act: $0-}";
105     more = "-- more --";
106   };
107
108   # there's two type of statusbars. root statusbars are either at the top
109   # of the screen or at the bottom of the screen. window statusbars are at
110   # the top/bottom of each split window in screen.
111   default = {
112     # the "default statusbar" to be displayed at the bottom of the window.
113     # contains all the normal items.
114     window = {
115       disabled = "no";
116
117       # window, root
118       type = "window";
119       # top, bottom
120       placement = "bottom";
121       # number
122       position = "1";
123       # active, inactive, always
124       visible = "active";
125
126       # list of items in statusbar in the display order
127       items = {
128         barstart = { priority = "100"; };
129         time = { };
130         user = { };
131         window = { };
132         window_empty = { };
133         lag = { priority = "-1"; };
134         act = { priority = "10"; };
135         usermode = { priority = "-1"; };
136         more = { priority = "10"; alignment = "right"; };
137         barend = { priority = "100"; alignment = "right"; };
138       };
139     };
140
141     # statusbar to use in inactive split windows
142     window_inact = {
143       type = "window";
144       placement = "bottom";
145       position = "1";
146       visible = "inactive";
147       items = {
148         barstart = { priority = "100"; };
149         window = { };
150         window_empty = { };
151         more = { priority = "-1"; alignment = "right"; };
152         barend = { priority = "100"; alignment = "right"; };
153       };
154     };
155
156     # we treat input line as yet another statusbar :) It's possible to
157     # add other items before or after the input line item.
158     prompt = {
159       type = "root";
160       placement = "bottom";
161       # we want to be at the bottom always
162       position = "100";
163       visible = "always";
164       items = {
165         prompt = { priority = "-1"; };
166         prompt_empty = { priority = "-1"; };
167         # treated specially, this is the real input line.
168         input = { priority = "10"; };
169       };
170     };
171
172     # topicbar
173     topic = {
174       type = "root";
175       placement = "top";
176       position = "1";
177       visible = "always";
178       disabled = "no";
179       items = {
180         barstart = { priority = "100"; };
181         topic = { };
182         topic_empty = { };
183         barend = { priority = "100"; alignment = "right"; };
184       };
185     };
186   };
187 };
188
189 #
190 # Settings (can be changed with /SET command)
191 #
192 # You can set the default cipher, hash function and HMAC to be used
193 # as setting as well.  You can set it here or use the /SET command.
194 #
195 # Available ciphers are (default: aes-256-cbc):
196 #
197 # aes-256-cbc, aes-192-cbc, aes-128-cbc,
198 # twofish-256-cbc, twofish-192-cbc, twofish-128-cbc,
199 # rc6-256-cbc, rc6-192-cbc, rc6-128-cbc, 
200 # cast-256-cbc, cast-192-cbc and cast-128-cbc
201 #
202 # Available hash functions are (default: sha1):
203 #
204 # sha1 and md5
205 #
206 # Available HMAC's are (default: hmac-sha1-96):
207 #
208 # hmac-sha1-96, hmac-md5-96, hmac-sha1 and hmac-md5
209 #
210 settings = {
211   "server" = {
212     crypto_default_cipher = "aes-256-cbc";
213     crypto_default_hash = "sha1";
214     crypto_default_hmac = "hmac-sha1-96";
215   };
216   "fe-common/core" = {
217     autocreate_own_query = "yes";
218     use_status_window = "no";
219     autoclose_windows = "no";
220     use_msgs_window = "no";
221     autocreate_windows = "yes";
222     autocreate_query_level = "MSG";
223     reuse_unused_windows = "yes";
224   };
225   core = {
226     server_reconnect_time = "10000";
227     resolve_reverse_lookup = "yes";
228   };
229   "fe-text" = { indent = "8"; };
230 };