Merged from silc_1_0_branch.
[silc.git] / apps / irssi / default.theme
1 # When testing changes, the easiest way to reload the theme is with /RELOAD.
2 # This reloads the configuration file too, so if you did any changes remember
3 # to /SAVE it first. Remember also that /SAVE overwrites the theme file with
4 # old data so keep backups :)
5
6 # TEMPLATES:
7
8 # The real text formats that irssi uses are the ones you can find with
9 # /FORMAT command. Back in the old days all the colors and texts were mixed
10 # up in those formats, and it was really hard to change the colors since you
11 # might have had to change them in tens of different places. So, then came
12 # this templating system.
13     
14 # Now the /FORMATs don't have any colors in them, and they also have very
15 # little other styling. Most of the stuff you need to change is in this
16 # theme file. If you can't change something here, you can always go back
17 # to change the /FORMATs directly, they're also saved in these .theme files.
18
19 # So .. the templates. They're those {blahblah} parts you see all over the
20 # /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
21 # When irssi sees this kind of text, it goes to find "name" from abstracts
22 # block below and sets "parameter1" into $0 and "parameter2" into $1 (you
23 # can have more parameters of course). Templates can have subtemplates.
24 # Here's a small example:
25 #   /FORMAT format hello {colorify {underline world}}
26 #   abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
27 # When irssi expands the templates in "format", the final string would be:
28 #   hello %G%Uworld%U%n
29 # ie. underlined bright green "world" text.
30 # and why "$0-", why not "$0"? $0 would only mean the first parameter,
31 # $0- means all the parameters. With {underline hello world} you'd really
32 # want to underline both of the words, not just the hello (and world would
33 # actually be removed entirely).
34
35 # COLORS:
36
37 # You can find definitions for the color format codes in docs/formats.txt.
38
39 # There's one difference here though. %n format. Normally it means the
40 # default color of the terminal (white mostly), but here it means the
41 # "reset color back to the one it was in higher template". For example
42 # if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
43 # print yellow "foo" (as set with %Y) but "bar" would be green, which was
44 # set at the beginning before the {foo} template. If there wasn't the %g
45 # at start, the normal behaviour of %n would occur. If you _really_ want
46 # to use the terminal's default color, use %N.
47
48 #############################################################################
49
50 # default foreground color (%N) - 0 is the "default terminal color" 
51 default_color = "-1";
52
53 # print timestamp/servertag at the end of line, not at beginning
54 info_eol = "false";
55
56 # these characters are automatically replaced with specified color
57 # (dark grey by default)
58 replaces = { "()=" = "%K$*%n"; };
59 #replaces = {};
60
61 abstracts = {
62   ##
63   ## generic
64   ##
65
66   # text to insert at the beginning of each non-message line
67   line_start = "*** ";
68
69   # timestamp styling, nothing by default
70   timestamp = "[$0-]";
71
72   # any kind of text that needs hilighting, default is to bold
73   hilight = "%_$0-%_";
74
75   # any kind of error message, default is bright red
76   error = "%R$0-%n";
77
78   # channel name is printed
79   channel = "%c$0-%n";
80
81   # nick is printed
82   nick = "%c$0-%n";
83
84   # nick host is printed
85   nickhost = "($0-)";
86
87   # server name is printed
88   server = "$0-";
89
90   # some kind of comment is printed
91   comment = "($0-)";
92
93   # reason for something is printed (part, quit, kick, ..)
94   reason = "{comment $0-}";
95
96   # mode change is printed
97   mode = "[$0-]";
98
99   ##
100   ## channel specific messages
101   ##
102
103   # highlighted nick/host is printed (joins)
104   channick_hilight = "%c$0-%n";
105   chanhost_hilight = "{nickhost %c$0-%n}";
106
107   # nick/host is printed (parts, quits, etc.)
108   channick = "$0-";
109   chanhost = "{nickhost $0-}";
110
111   # highlighted channel name is printed
112   channelhilight = "%c$0-%n";
113
114   # ban/ban exception/invite list mask is printed
115   ban = "$0-";
116
117   ##
118   ## Action (/ME command)
119   ##
120
121   # Generic action
122   action = "%Y* $0 $1-";
123
124   # Own sent action
125   ownaction = "%c* $0 $1-";
126
127   ##
128   ## Notice (/NOTICE command)
129   ##
130
131   # Generic notice
132   notice = "%C- $0 $1-";
133
134   # Own sent notice
135   ownnotice = "%g- $0 $1-";
136
137
138   ##
139   ## messages
140   ##
141
142   # the basic styling of how to print message, $0 = nick mode, $1 = nick
143   msgnick = "%c%|<$0$1->%n ";
144
145   # message from you is printed. "msgownnick" specifies the styling of the
146   # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
147   # whole line.
148
149   # Example1: You want the message text to be green:
150   #  ownmsgnick = "{msgnick $0 $1-}%g";
151   # Example2.1: You want < and > chars to be yellow:
152   #  ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
153   #  (you'll also have to remove <> from replaces list above)
154   # Example2.2: But you still want to keep <> grey for other messages:
155   #  pubmsgnick = "%K{msgnick $0 $1-%K}%n";
156   #  pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
157   #  pubmsghinick = "%K{msgnick $1 $0$2-%K}%n";
158   #  ownprivmsgnick = "%K{msgnick  $0-%K}%n";
159   #  privmsgnick = "%K{msgnick  %R$0-%K}%n";
160
161   # $0 = nick mode, $1 = nick
162   ownmsgnick = "{msgnick $0 $1-}%g";
163   ownnick = "$0-";
164
165   # public message in channel, $0 = nick mode, $1 = nick
166   pubmsgnick = "{msgnick $0 $1-}";
167   pubnick = "$0-";
168
169   # public message in channel meant for me, $0 = nick mode, $1 = nick
170   pubmsgmenick = "%g<$0$1->%n %|";
171   menick = "$0-";
172
173   # public highlighted message in channel
174   # $0 = highlight color, $1 = nick mode, $2 = nick
175   pubmsghinick = "{msgnick $1 $2-}$0";
176
177   # channel name is printed with message
178   msgchannel = "%w|%c$0-";
179
180   # private message, $0 = nick, $1 = host
181   privmsg = "*%c$0%n* ";
182
183   # private message from you, $0 = "msg", $1 = target nick
184   ownprivmsg = "->*%c$1-%n* %g";
185
186   # private message in query
187   privmsgnick = "*%c$0%n* ";
188
189   # own private message in query
190   ownprivmsgnick = "->*%c$0%n* %g$1-";
191   ownprivnick = "$0-";
192
193
194   ##
195   ## other IRC events
196   ##
197
198   # CTCPs
199   ownctcp = "[$0$1-] ";
200   ctcp = "$0-";
201
202   # wallops
203   wallop = "$0-: ";
204   wallop_nick = "$0-";
205   wallop_action = " * $0- ";
206
207   # netsplits
208   netsplit = "%c$0-%n";
209   netjoin = "%C$0-%n";
210
211   # /names list
212   names_prefix = "";
213   names_nick = "[ %n%_$0%_$1- ] ";
214   names_nick_op = "{names_nick $*}";
215   names_users = "$0-";
216   names_channel = "{channel $0-}";
217
218   # DCC
219   dcc = "$0-";
220   dccfile = "%_$0-%_";
221
222   # DCC chat, own msg/action
223   dccownmsg = "*%c=$1-%n*> %g";
224   dccownaction = "{action $0-}";
225   dccownaction_target = "{ownaction_target $0-}";
226
227   # DCC chat, others
228   dccmsg = "*%c=$1-%n* ";
229   dccquerynick = "$0-";
230   dccaction = " (*dcc*) $0- %|";
231
232   ##
233   ## statusbar
234   ##
235
236   # default background for all statusbars. You can also give
237   # the default foreground color for statusbar items.
238   sb_background = "%4%w";
239
240   # default backround for "default" statusbar group
241   #sb_default_bg = "%4";
242   # background for prompt / input line
243   sb_prompt_bg = "%n";
244   # background for info statusbar
245   sb_info_bg = "%8";
246   # background for topicbar (same default)
247   #sb_topic_bg = "%4";
248
249   # text at the beginning of statusbars. sb-item already puts
250   # space there,so we don't use anything by default.
251   sbstart = "";
252   # text at the end of statusbars. Use space so that it's never
253   # used for anything.
254   sbend = " ";
255
256   prompt = "[$*] ";
257
258   sb = " %c[%n$*%c]%n";
259   sbmode = "(%c+%n$*)";
260   sbusermode = "(%n$*)";
261   sbaway = " (%GzZzZ%n)";
262   sbservertag = ":$0 (change with ^X)";
263
264   # activity in statusbar
265
266   # ',' separator
267   sb_act_sep = "%c$*";
268   # normal text
269   sb_act_text = "%c$*";
270   # public message
271   sb_act_msg = "%W$*";
272   # hilight
273   sb_act_hilight = "%M$*";
274   # hilight with specified color, $0 = color, $1 = text
275   sb_act_hilight_color = "$0$1-%n";
276
277   # signed messages
278   # the following formats fit the Irssi default theme:
279   # 
280   # flag_signed = "%GS%n";
281   # flag_unknown = "%Y?%n";
282   # flag_failed = "%RF%n";
283   # 
284   # pubmsghinick_signed = "{msgnick {flag_signed} $0$2-%n}";
285   # pubmsghinick_unknown = "{msgnick {flag_unknown} $0$2-%n}";
286   # pubmsghinick_failed = "{msgnick {flag_failed} $0$2-%n}";
287   # 
288   # pubmsgmenick_signed = "{msgnick {flag_signed} $1-}";
289   # pubmsgmenick_unknown = "{msgnick {flag_unknown} $1-}";
290   # pubmsgmenick_failed = "{msgnick {flag_failed} $1-}";
291   # 
292   # pubmsgnick_signed = "{msgnick {flag_signed} $1-}";
293   # pubmsgnick_unknown = "{msgnick {flag_unknown} $1-}";
294   # pubmsgnick_failed = "{msgnick {flag_failed} $1-}";
295   # 
296   # privmsg_signed = "{privmsg {flag_signed}$0 $1}";
297   # privmsg_unknown = "{privmsg {flag_unknown}$0 $1}";
298   # privmsg_failed = "{privmsg {flag_failed}$0 $1}";
299   # 
300   # privmsgnick_signed = "{msgnick {flag_signed} %R$*%n}";
301   # privmsgnick_unknown = "{msgnick {flag_unknown} %R$*%n}";
302   # privmsgnick_failed = "{msgnick {flag_failed} %R$*%n}";
303   # 
304   # ownmsgnick_signed = "{msgnick {flag_signed} $1-}";
305   # ownprivmsgnick_signed = "{msgnick {flag_signed} $*}";
306   #
307   flag_signed = "[%cS%n]";
308   flag_unknown = "[%Y?%n]";
309   flag_failed = "[%RF%n]";
310
311   pubmsghinick_signed = "{msgnick {flag_signed} $0$2-%n}";
312   pubmsghinick_unknown = "{msgnick {flag_unknown} $0$2-%n}";
313   pubmsghinick_failed = "{msgnick {flag_failed} $0$2-%n}";
314   
315   pubmsgmenick_signed = "%g<{flag_signed}$1->%n %|";
316   pubmsgmenick_unknown = "%g<{flag_unknown}$1->%n %|";
317   pubmsgmenick_failed = "%g<{flag_failed}$1->%n %|";
318   
319   pubmsgnick_signed = "{msgnick {flag_signed}$0 $1-}";
320   pubmsgnick_unknown = "{msgnick {flag_unknown}$0 $1-}";
321   pubmsgnick_failed = "{msgnick {flag_failed}$0 $1-}";
322   
323   privmsg_signed = "{privmsg {flag_signed}$0 $1}";
324   privmsg_unknown = "{privmsg {flag_unknown}$0 $1}";
325   privmsg_failed = "{privmsg {flag_failed}$0 $1}";
326   
327   privmsgnick_signed = "{privmsgnick {flag_signed}$0}";
328   privmsgnick_unknown = "{privmsgnick {flag_unknown}$0}";
329   privmsgnick_failed = "{privmsgnick {flag_failed}$0}";
330   
331   ownmsgnick_signed = "{msgnick {flag_signed} $1-}%g";
332   ownprivmsg_signed = "->*%c{flag_signed}$1-%n* %g";
333   ownprivmsgnick_signed = "->*%c{flag_signed}$0%n* %g$1-";
334 };
335
336 #
337 # Some default formats how to print stuff on screen
338 #
339 formats = {
340   "fe-common/core" = {
341     endofnames = "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $4} normal}";
342     line_start_irssi = "{line_start}";
343   };
344 };