559e4cde9a6e4e161443eafc79a6cf9ba39790da
[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   MOOD = "ATTR status_mood";
75   OP = "CUMODE $C +o";
76 };
77
78 #
79 # Configuration for statusbar and other bars that appear on the screen
80 #
81 statusbar = {
82   # formats:
83   # when using {templates}, the template is shown only if it's argument isn't
84   # empty unless no argument is given. for example {sb} is printed always,
85   # but {sb $T} is printed only if $T isn't empty.
86
87   items = {
88     # start/end text in statusbars
89     barstart = "{sbstart}";
90     barend = "{sbend}";
91
92     # treated "normally", you could change the time/user name to whatever
93     time = "{sb $Z}";
94     user = "{sb $cumode$N{sbaway $A}}";
95     usermode = " {sbusermode $usermode}";
96     topic = " $topic";
97     topic_empty = " Irssi v$J - http://irssi.org/help/";
98
99     # treated specially .. window is printed with non-empty windows,
100     # window_empty is printed with empty windows
101     window = "{sb $winref:$T{sbmode $M}}";
102     window_empty = "{sb $winref{sbservertag $tag}}";
103     prompt = "{prompt $[.15]T}";
104     prompt_empty = "{prompt $winname}";
105
106     # all of these treated specially, they're only displayed when needed
107     lag = "{sb Lag: $0-}";
108     act = "{sb Act: $0-}";
109     more = "-- more --";
110   };
111
112   # there's two type of statusbars. root statusbars are either at the top
113   # of the screen or at the bottom of the screen. window statusbars are at
114   # the top/bottom of each split window in screen.
115   default = {
116     # the "default statusbar" to be displayed at the bottom of the window.
117     # contains all the normal items.
118     window = {
119       disabled = "no";
120
121       # window, root
122       type = "window";
123       # top, bottom
124       placement = "bottom";
125       # number
126       position = "1";
127       # active, inactive, always
128       visible = "active";
129
130       # list of items in statusbar in the display order
131       items = {
132         barstart = { priority = "100"; };
133         time = { };
134         user = { };
135         window = { };
136         window_empty = { };
137         lag = { priority = "-1"; };
138         act = { priority = "10"; };
139         usermode = { priority = "-1"; };
140         more = { priority = "10"; alignment = "right"; };
141         barend = { priority = "100"; alignment = "right"; };
142       };
143     };
144
145     # statusbar to use in inactive split windows
146     window_inact = {
147       type = "window";
148       placement = "bottom";
149       position = "1";
150       visible = "inactive";
151       items = {
152         barstart = { priority = "100"; };
153         window = { };
154         window_empty = { };
155         more = { priority = "-1"; alignment = "right"; };
156         barend = { priority = "100"; alignment = "right"; };
157       };
158     };
159
160     # we treat input line as yet another statusbar :) It's possible to
161     # add other items before or after the input line item.
162     prompt = {
163       type = "root";
164       placement = "bottom";
165       # we want to be at the bottom always
166       position = "100";
167       visible = "always";
168       items = {
169         prompt = { priority = "-1"; };
170         prompt_empty = { priority = "-1"; };
171         # treated specially, this is the real input line.
172         input = { priority = "10"; };
173       };
174     };
175
176     # topicbar
177     topic = {
178       type = "root";
179       placement = "top";
180       position = "1";
181       visible = "always";
182       disabled = "yes";
183       items = {
184         barstart = { priority = "100"; };
185         topic = { };
186         topic_empty = { };
187         barend = { priority = "100"; alignment = "right"; };
188       };
189     };
190   };
191 };
192
193 #
194 # Settings (can be changed with /SET command)
195 #
196 # You can set the default cipher, hash function and HMAC to be used
197 # as setting as well.  You can set it here or use the /SET command.
198 #
199 # Available ciphers are (default: aes-256-cbc):
200 #
201 # aes-256-cbc, aes-192-cbc, aes-128-cbc,
202 # twofish-256-cbc, twofish-192-cbc, twofish-128-cbc,
203 # rc6-256-cbc, rc6-192-cbc, rc6-128-cbc, 
204 # mars-256-cbc, mars-192-cbc, mars-128-cbc,
205 # cast-256-cbc, cast-192-cbc and cast-128-cbc
206 #
207 # Available hash functions are (default: sha1):
208 #
209 # sha1 and md5
210 #
211 # Available HMAC's are (default: hmac-sha1-96):
212 #
213 # hmac-sha1-96, hmac-md5-96, hmac-sha1 and hmac-md5
214 #
215 settings = {
216   "server" = {
217     crypto_default_cipher = "aes-256-cbc";
218     crypto_default_hash = "sha1";
219     crypto_default_hmac = "hmac-sha1-96";
220   };
221   "fe-common/core" = {
222     autocreate_own_query = "no";
223     use_status_window = "no";
224     autoclose_windows = "no";
225     use_msgs_window = "no";
226     autocreate_windows = "no";
227     autocreate_query_level = "none";
228   };
229   core = {
230     server_reconnect_time = "10000";
231   };
232   "fe-text" = { indent = "8"; };
233 };