d022cd0473af9570329c18a8943af25234a125d6
[grml-etc.git] / etc / skel / .irssi / config
1 # Filename:      .irssi/config
2 # Purpose:       config file for irssi (irc client)
3 # Authors:       grml-team (grml.org), (c) Daniel K. Gebhart, (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports:   see http://grml.org/bugs/
5 # License:       This file is licensed under the GPL v2.
6 # Latest change: Son Okt 17 18:50:33 CEST 2004 [mika]
7 ################################################################################
8
9 servers = (
10   { address = "irc.stealth.net"; chatnet = "IRCnet"; port = "6668"; },
11   { address = "irc.efnet.net"; chatnet = "EFNet"; port = "6667"; },
12   { 
13     address = "irc.undernet.org";
14     chatnet = "Undernet";
15     port = "6667";
16   },
17   { address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
18   {
19     address = "irc.oftc.net";
20     chatnet = "oftc";
21     autoconnect = "yes";
22     port = "6667";
23   },
24   { address = "irc.gnome.org"; chatnet = "GIMPNet"; port = "6667"; },
25   { address = "10.11.18.42"; chatnet = "VCG"; port = "6667"; },
26   { address = "irc.ptlink.net"; chatnet = "PTlink"; port = "6667"; },
27   { 
28     address = "irc.sorcery.net";
29     chatnet = "SorceryNet";
30     port = "6667";
31   },
32   { 
33     address = "irc.hashmark.net";
34     chatnet = "Hashmark";
35     port = "6667";
36   },
37   { address = "irc.ptnet.org"; chatnet = "PTnet"; port = "6667"; },
38   { 
39     address = "irc.azzurra.org";
40     chatnet = "AzzurraNET";
41     port = "6667";
42   },
43   { address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; }
44 );
45
46 chatnets = {
47   IRCnet = {
48     type = "IRC";
49     max_kicks = "4";
50     max_modes = "3";
51     max_msgs = "5";
52     max_whois = "4";
53     max_query_chans = "5";
54   };
55   EFNet = {
56     type = "IRC";
57     max_kicks = "4";
58     max_modes = "4";
59     max_msgs = "3";
60     max_whois = "1";
61   };
62   Undernet = {
63     type = "IRC";
64     max_kicks = "4";
65     max_modes = "3";
66     max_msgs = "3";
67     max_whois = "30";
68   };
69   DALnet = {
70     type = "IRC";
71     max_kicks = "4";
72     max_modes = "6";
73     max_msgs = "3";
74     max_whois = "30";
75   };
76   freenode = {
77     type = "IRC";
78     max_kicks = "4";
79     max_modes = "4";
80     max_msgs = "1";
81     max_whois = "1";
82   };
83   GIMPNet = {
84     type = "IRC";
85     max_kicks = "4";
86     max_modes = "4";
87     max_msgs = "3";
88     max_whois = "1";
89   };
90   PTlink = {
91     type = "IRC";
92     max_kicks = "1";
93     max_modes = "6";
94     max_msgs = "30";
95     max_whois = "1";
96   };
97   SorceryNet = {
98     type = "IRC";
99     max_kicks = "30";
100     max_modes = "6";
101     max_msgs = "30";
102     max_whois = "30";
103   };
104   Hashmark = {
105     type = "IRC";
106     max_kicks = "4";
107     max_modes = "3";
108     max_msgs = "3";
109     max_whois = "30";
110   };
111   PTnet = {
112     type = "IRC";
113     max_kicks = "30";
114     max_modes = "13";
115     max_msgs = "10";
116     max_whois = "30";
117   };
118   AzzurraNET = {
119     type = "IRC";
120     max_kicks = "4";
121     max_modes = "6";
122     max_msgs = "3";
123   };
124   SILC = { type = "SILC"; };
125 };
126
127 channels = (
128   { name = "#grml"; chatnet = "oftc"; autojoin = "Yes"; },
129   { name = "#irssi"; chatnet = "ircnet"; autojoin = "No"; },
130   { name = "silc"; chatnet = "silc"; autojoin = "No"; }
131 );
132
133 aliases = {
134   J = "join";
135   WJOIN = "join -window";
136   WQUERY = "query -window";
137   LEAVE = "part";
138   BYE = "quit";
139   EXIT = "quit";
140   SIGNOFF = "quit";
141   DESCRIBE = "action";
142   DATE = "time";
143   HOST = "userhost";
144   LAST = "lastlog";
145   SAY = "msg *";
146   WI = "whois";
147   WII = "whois $0 $0";
148   WW = "whowas";
149   W = "who";
150   N = "names";
151   M = "msg";
152   T = "topic";
153   C = "clear";
154   CL = "clear";
155   K = "kick";
156   KB = "kickban";
157   KN = "knockout";
158   BANS = "ban";
159   B = "ban";
160   MUB = "unban *";
161   UB = "unban";
162   IG = "ignore";
163   UNIG = "unignore";
164   SB = "scrollback";
165   UMODE = "mode $N";
166   WC = "window close";
167   WN = "window new hide";
168   SV = "say Irssi $J ($V) - http://irssi.org/";
169   GOTO = "sb goto";
170   CHAT = "dcc chat";
171   RUN = "SCRIPT LOAD";
172   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\" }'";
173   CALC = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi";
174   SBAR = "STATUSBAR";
175   INVITELIST = "mode $C +I";
176   Q = "QUERY";
177 };
178
179 statusbar = {
180   # formats:
181   # when using {templates}, the template is shown only if it's argument isn't
182   # empty unless no argument is given. for example {sb} is printed always,
183   # but {sb $T} is printed only if $T isn't empty.
184
185   items = {
186     # start/end text in statusbars
187     barstart = "{sbstart}";
188     barend = "{sbend}";
189
190     topicbarstart = "{topicsbstart}";
191     topicbarend = "{topicsbend}";
192
193     # treated "normally", you could change the time/user name to whatever
194     time = "{sb $Z}";
195     user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
196
197     # treated specially .. window is printed with non-empty windows,
198     # window_empty is printed with empty windows
199     window = "{sb $winref:$itemname{sbmode $M}}";
200     window_empty = "{sb $winref{sbservertag $tag}}";
201     prompt = "{prompt $[.15]itemname}";
202     prompt_empty = "{prompt $winname}";
203     topic = " $topic";
204     topic_empty = " Irssi v$J - http://irssi.org/help/";
205
206     # all of these treated specially, they're only displayed when needed
207     lag = "{sb Lag: $0-}";
208     act = "{sb Act: $0-}";
209     more = "-- more --";
210   };
211
212   # there's two type of statusbars. root statusbars are either at the top
213   # of the screen or at the bottom of the screen. window statusbars are at
214   # the top/bottom of each split window in screen.
215   default = {
216     # the "default statusbar" to be displayed at the bottom of the window.
217     # contains all the normal items.
218     window = {
219       disabled = "no";
220
221       # window, root
222       type = "window";
223       # top, bottom
224       placement = "bottom";
225       # number
226       position = "1";
227       # active, inactive, always
228       visible = "active";
229
230       # list of items in statusbar in the display order
231       items = {
232         barstart = { priority = "100"; };
233         time = { };
234         user = { };
235         window = { };
236         window_empty = { };
237         lag = { priority = "-1"; };
238         act = { priority = "10"; };
239         more = { priority = "-1"; alignment = "right"; };
240         barend = { priority = "100"; alignment = "right"; };
241       };
242     };
243
244     # statusbar to use in inactive split windows
245     window_inact = {
246       type = "window";
247       placement = "bottom";
248       position = "1";
249       visible = "inactive";
250       items = {
251         barstart = { priority = "100"; };
252         window = { };
253         window_empty = { };
254         more = { priority = "-1"; alignment = "right"; };
255         barend = { priority = "100"; alignment = "right"; };
256       };
257     };
258
259     # we treat input line as yet another statusbar :) It's possible to
260     # add other items before or after the input line item.
261     prompt = {
262       type = "root";
263       placement = "bottom";
264       # we want to be at the bottom always
265       position = "100";
266       visible = "always";
267       items = {
268         prompt = { priority = "-1"; };
269         prompt_empty = { priority = "-1"; };
270         # treated specially, this is the real input line.
271         input = { priority = "10"; };
272       };
273     };
274
275     # topicbar
276     topic = {
277       type = "root";
278       placement = "top";
279       position = "1";
280       visible = "always";
281       items = {
282         topicbarstart = { priority = "100"; };
283         topic = { };
284         topic_empty = { };
285         topicbarend = { priority = "100"; alignment = "right"; };
286       };
287     };
288   };
289 };
290 settings = {
291   core = {
292     real_name = "a grml user";
293     user_name = "grml";
294     nick = "grml";
295     quit_message = "grml.org - linux for sysadmins and users of texttools";
296   };
297   "irc/core" = {
298     alternate_nick = "grml-user";
299     part_message = "grml.org - linux for sysadmins and users of texttools";
300   };
301 };
302
303 ## END OF FILE #################################################################