1# Greenish by Juho Majasaari aka. geel
2# A new version of the "simple"-theme,
3# now takes use of some cvs-version thingies..
4################################################
5
6
7
8
9# When testing changes, the easiest way to reload the theme is with /RELOAD.
10# This reloads the configuration file too, so if you did any changes remember
11# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
12# old data so keep backups :)
13
14# TEMPLATES:
15
16# The real text formats that irssi uses are the ones you can find with
17# /FORMAT command. Back in the old days all the colors and texts were mixed
18# up in those formats, and it was really hard to change the colors since you
19# might have had to change them in tens of different places. So, then came
20# this templating system.
21
22# Now the /FORMATs don't have any colors in them, and they also have very
23# little other styling. Most of the stuff you need to change is in this
24# theme file. If you can't change something here, you can always go back
25# to change the /FORMATs directly, they're also saved in these .theme files.
26
27# So .. the templates. They're those {blahblah} parts you see all over the
28# /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
29# When irssi sees this kind of text, it goes to find "name" from abstracts
30# block below and sets "parameter1" into $0 and "parameter2" into $1 (you
31# can have more parameters of course). Templates can have subtemplates.
32# Here's a small example:
33#   /FORMAT format hello {colorify {underline world}}
34#   abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
35# When irssi expands the templates in "format", the final string would be:
36#   hello %G%Uworld%U%n
37# ie. underlined bright green "world" text.
38# and why "$0-", why not "$0"? $0 would only mean the first parameter,
39# $0- means all the parameters. With {underline hello world} you'd really
40# want to underline both of the words, not just the hello (and world would
41# actually be removed entirely).
42
43# COLORS:
44
45# You can find definitions for the color format codes in docs/formats.txt.
46
47# There's one difference here though. %n format. Normally it means the
48# default color of the terminal (white mostly), but here it means the
49# "reset color back to the one it was in higher template". For example
50# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
51# print yellow "foo" (as set with %Y) but "bar" would be green, which was
52# set at the beginning before the {foo} template. If there wasn't the %g
53# at start, the normal behaviour of %n would occur. If you _really_ want
54# to use the terminal's default color, use %N.
55
56#############################################################################
57
58# default foreground color (%N) - 0 is the "default terminal color"
59default_color = "0";
60# default foreground color when "0" can't be used,
61# such as with bolds and reverses. white is default.
62default_real_color = "7";
63
64# these characters are automatically replaced with specified color
65# (dark grey by default)
66replaces = { "[]" = "%w$0-%n"; };
67
68abstracts = {
69  ##
70  ## generic
71  ##
72
73  # text to insert at the beginning of each non-message line
74  line_start = "%c»%n ";
75
76  # timestamp styling, nothing by default
77  timestamp = "($0-)";
78
79  # any kind of text that needs hilighting, default is to bold
80  hilight = "%_$0-%_";
81
82  # any kind of error message, default is bright red
83  error = "%B$0-%n";
84
85  # channel name is printed
86  channel = "%_$0-%_";
87
88  # nick is printed
89  nick = "%_$0-%n%_";
90
91  # nick host is printed
92  nickhost = "[$0-]";
93
94  # server name is printed
95  server = "%_$0-%_";
96
97  # some kind of comment is printed
98  comment = "[$0-]";
99
100  # reason for something is printed (part, quit, kick, ..)
101  reason = "{comment $0-}";
102
103  # mode change is printed ([+o nick])
104  mode = "{comment $0-}";
105
106  ##
107  ## channel specific messages
108  ##
109
110  # highlighted nick/host is printed (joins)
111  channick_hilight = "%C$0-%n";
112  chanhost_hilight = "{nickhost %c$0-%n}";
113
114  # nick/host is printed (parts, quits, etc.)
115  channick = "%g$0-%n";
116  chanhost = "{nickhost $0-}";
117
118  # highlighted channel name is printed
119  channelhilight = "%c$0-%n";
120
121  # ban/ban exception/invite list mask is printed
122  ban = "%c$0-%n";
123
124  ##
125  ## messages
126  ##
127
128  # the basic styling of how to print message, $0 = nick mode, $1 = nick
129  msgnick = "<$0$1-> %|";
130
131  # message from you is printed. "msgownnick" specifies the styling of the
132  # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
133  # whole line.
134
135  # Example1: You want the message text to be green:
136  #  ownmsgnick = "{msgnick $0 $1-}%g";
137  # Example2.1: You want < and > chars to be yellow:
138  #  ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
139  #  (you'll also have to remove <> from replaces list above)
140  # Example2.2: But you still want to keep <> grey for other messages:
141  #  pubmsgnick = "%K{msgnick $0 $1-%K}%n";
142  #  pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
143  #  pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
144  #  ownprivmsgnick = "%K{msgnick  $0-%K}%n";
145  #  privmsgnick = "%K{msgnick  %R$0-%K}%n";
146
147  # $0 = nick mode, $1 = nick
148  ownmsgnick = "{msgnick $0 $1-}";
149  ownnick = "%g$0-%n";
150
151  # public message in channel, $0 = nick mode, $1 = nick
152  pubmsgnick = "{msgnick $0 $1-}";
153  pubnick = "%N$0-%n";
154
155  # public message in channel meant for me, $0 = nick mode, $1 = nick
156  pubmsgmenick = "{msgnick %n$0 $1-%n}";
157  menick = "%C$0-%n";
158
159  # public highlighted message in channel
160  # $0 = highlight color, $1 = nick mode, $2 = nick
161  pubmsghinick = "{msgnick %R:%n$1 $0$2-%n%R:%n}";
162
163  # channel name is printed with message
164  msgchannel = "%K:%c$0-%n";
165
166  # private message, $0 = nick, $1 = host
167  privmsg = "[%c$0%K(%r$1-%K)%n] ";
168
169  # private message from you, $0 = "msg", $1 = target nick
170  ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
171
172  # own private message in query
173  ownprivmsgnick = "{msgnick  $0-}";
174  ownprivnick = "%g$0-%n";
175
176  # private message in query
177  privmsgnick = "{msgnick  %C$0-%n}";
178
179  ##
180  ## Actions (/ME stuff)
181  ##
182
183  # used internally by this theme
184  action_core = "%W$0-%n ";
185
186  # generic one that's used by most actions
187  action = "::%w:%n {action_core $0-}";
188
189  # own action, both private/public
190  ownaction = "{action $0-}%n";
191
192  # own action with target, both private/public
193  ownaction_target = "{action_core $0}%K:%c$1%n ";
194
195  # private action sent by others
196  pvtaction = "%W (*) $0-%n ";
197  pvtaction_query = "{action $0-}";
198
199  # public action sent by others
200  pubaction = "{action $0-}";
201
202
203  ##
204  ## other IRC events
205  ##
206
207  # notices
208  ownnotice = "[%c$0%K(%g$1-%K)]%n ";
209  notice = "%c-%n$0-%K-%n ";
210  pubnotice_channel = "%K:%g$0-";
211  pvtnotice_host = "%K(%m$0-%K)";
212  servernotice = "%g!$0-%n ";
213
214  # CTCPs
215  ownctcp = "[%c$0%K(%w$1-%K)] ";
216  ctcp = "%c$0-%n";
217
218  # wallops
219  wallop = "%W$0-%n: ";
220  wallop_nick = "%n$0-";
221  wallop_action = "%W * $0-%n ";
222
223  # netsplits
224  netsplit = "%R$0-%n";
225  netjoin = "%C$0-%n";
226
227  # /names list
228  names_nick = "[%_$0%_$1-] ";
229  names_users = "[%c$0-%n]";
230  names_channel = "%C$0-%n";
231
232  # DCC
233  dcc = "%c$0-%n";
234  dccfile = "%_$0-%_";
235
236  # DCC chat, own msg/action
237  dccownmsg = "[%c$0%K($1-%K)%n] ";
238  dccownnick = "%y$0-%n";
239  dccownaction = "{action $0-}";
240  dccownaction_target = "{action_core $0}%K:%c$1%n ";
241
242  # DCC chat, others
243  dccmsg = "[%c$1-%K(%g$0%K)%n] ";
244  dccquerynick = "%r$0-%n";
245  dccaction = "%W (*dcc*) $0-%n %|";
246
247  ##
248  ## statusbar
249  ##
250
251  # background of statusbar
252  sb_background = "%0";
253  sb_act_hilight = "%G$*";
254  # default statusbar item style
255  sb = "%c[%n$0-%c]%n";
256  sb_topic_bg = "%c";
257  sb_topic = "%C";
258  sbmode = "(%c+%n$0-)";
259  sbaway = " (%cGone..%n)";
260  sbservertag = "%c:%n$0 (change with ^X)";
261  sbmore = "%_-- more --%_";
262  sblag = "{sb Lag: $0-}";
263  sbmail = "{sb Mail: $0-}";
264
265  # activity. Det is used for hilights when display doesn't support colors
266  sbact = "{sb {sbact_act $0}{sbact_det $1}}";
267  sbact_act = "Act: $0-";
268  sbact_det = " Det: $0-";
269};
270