updates.
[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 # 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   DATE = "time";
41   HOST = "userhost";
42   LAST = "lastlog";
43   SAY = "msg *";
44   WHO = "users *";
45   WI = "whois";
46   WII = "whois $0 $0";
47   WW = "whowas";
48   W = "who";
49   N = "names";
50   M = "msg";
51   T = "topic";
52   C = "clear";
53   CL = "clear";
54   K = "kick";
55   KB = "kickban";
56   KN = "knockout";
57   BANS = "ban";
58   B = "ban";
59   MUB = "unban *";
60   UB = "unban";
61   IG = "ignore";
62   UNIG = "unignore";
63   SB = "scrollback";
64   WC = "window close";
65   WN = "window new hide";
66   GOTO = "sb goto";
67   CHAT = "dcc chat";
68   ADMIN = "info";
69   RUN = "SCRIPT LOAD";
70   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\" }'";
71   CALC = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi";
72   SBAR = "STATUSBAR";
73   Q = "QUERY";
74 };
75
76 #
77 # Configuration for statusbar and other bars that appear on the screen
78 #
79 statusbar = {
80   # formats:
81   # when using {templates}, the template is shown only if it's argument isn't
82   # empty unless no argument is given. for example {sb} is printed always,
83   # but {sb $T} is printed only if $T isn't empty.
84
85   items = {
86     # start/end text in statusbars
87     barstart = "{sbstart}";
88     barend = "{sbend}";
89
90     # treated "normally", you could change the time/user name to whatever
91     time = "{sb $Z}";
92     user = "{sb $cumode$N{sbaway $A}}";
93     usermode = " {sbusermode $usermode}";
94     topic = " $topic";
95     topic_empty = " Irssi v$J - http://irssi.org/help/";
96
97     # treated specially .. window is printed with non-empty windows,
98     # window_empty is printed with empty windows
99     window = "{sb $winref:$T{sbmode $M}}";
100     window_empty = "{sb $winref{sbservertag $tag}}";
101     prompt = "{prompt $[.15]T}";
102     prompt_empty = "{prompt $winname}";
103
104     # all of these treated specially, they're only displayed when needed
105     lag = "{sb Lag: $0-}";
106     act = "{sb Act: $0-}";
107     more = "-- more --";
108   };
109
110   # there's two type of statusbars. root statusbars are either at the top
111   # of the screen or at the bottom of the screen. window statusbars are at
112   # the top/bottom of each split window in screen.
113   default = {
114     # the "default statusbar" to be displayed at the bottom of the window.
115     # contains all the normal items.
116     window = {
117       disabled = "no";
118
119       # window, root
120       type = "window";
121       # top, bottom
122       placement = "bottom";
123       # number
124       position = "1";
125       # active, inactive, always
126       visible = "active";
127
128       # list of items in statusbar in the display order
129       items = {
130         barstart = { priority = "100"; };
131         time = { };
132         user = { };
133         window = { };
134         window_empty = { };
135         lag = { priority = "-1"; };
136         act = { priority = "10"; };
137         usermode = { priority = "-1"; };
138         more = { priority = "10"; alignment = "right"; };
139         barend = { priority = "100"; alignment = "right"; };
140       };
141     };
142
143     # statusbar to use in inactive split windows
144     window_inact = {
145       type = "window";
146       placement = "bottom";
147       position = "1";
148       visible = "inactive";
149       items = {
150         barstart = { priority = "100"; };
151         window = { };
152         window_empty = { };
153         more = { priority = "-1"; alignment = "right"; };
154         barend = { priority = "100"; alignment = "right"; };
155       };
156     };
157
158     # we treat input line as yet another statusbar :) It's possible to
159     # add other items before or after the input line item.
160     prompt = {
161       type = "root";
162       placement = "bottom";
163       # we want to be at the bottom always
164       position = "100";
165       visible = "always";
166       items = {
167         prompt = { priority = "-1"; };
168         prompt_empty = { priority = "-1"; };
169         # treated specially, this is the real input line.
170         input = { priority = "10"; };
171       };
172     };
173
174     # topicbar
175     topic = {
176       type = "root";
177       placement = "top";
178       position = "1";
179       visible = "always";
180       disabled = "yes";
181       items = {
182         barstart = { priority = "100"; };
183         topic = { };
184         topic_empty = { };
185         barend = { priority = "100"; alignment = "right"; };
186       };
187     };
188   };
189 };
190
191 #
192 # Settings (can be changed with /SET command)
193 #
194 # You can set the default cipher, hash function and HMAC to be used
195 # as setting as well.  You can set it here or use the /SET command.
196 #
197 # Available ciphers are (default: aes-256-cbc):
198 #
199 # aes-256-cbc, aes-192-cbc, aes-128-cbc,
200 # twofish-256-cbc, twofish-192-cbc, twofish-128-cbc,
201 # rc6-256-cbc, rc6-192-cbc, rc6-128-cbc, 
202 # mars-256-cbc, mars-192-cbc, mars-128-cbc,
203 # cast-256-cbc, cast-192-cbc and cast-128-cbc
204 #
205 # Available hash functions are (default: sha1):
206 #
207 # sha1 and md5
208 #
209 # Available HMAC's are (default: hmac-sha1-96):
210 #
211 # hmac-sha1-96, hmac-md5-96, hmac-sha1 and hmac-md5
212 #
213 settings = {
214   "server" = {
215     crypto_default_cipher = "aes-256-cbc";
216     crypto_default_hash = "sha1";
217     crypto_default_hmac = "hmac-sha1-96";
218   };
219   "fe-common/core" = {
220     autocreate_own_query = "no";
221     use_status_window = "no";
222     autoclose_windows = "no";
223     use_msgs_window = "no";
224     autocreate_windows = "no";
225     autocreate_query_level = "none";
226   };
227   core = {
228     server_reconnect_time = "10000";
229   };
230   "fe-text" = { indent = "8"; };
231 };