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 :)
 
   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.
 
  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.
 
  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:
 
  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).
 
  37 # You can find definitions for the color format codes in docs/formats.txt.
 
  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.
 
  48 #############################################################################
 
  50 # default foreground color (%N) - -1 is the "default terminal color"
 
  53 # print timestamp/servertag at the end of line, not at beginning
 
  56 # these characters are automatically replaced with specified color
 
  57 # (dark grey by default)
 
  58 replaces = { "[]=" = "%K$*%n"; };
 
  65   # text to insert at the beginning of each non-message line
 
  66   line_start = "%B-%n!%B-%n ";
 
  68   # timestamp styling, nothing by default
 
  72   # any kind of text that needs hilighting, default is to bold
 
  75   # any kind of error message, default is bright red
 
  78   # channel name is printed
 
  84   # nick host is printed
 
  87   # server name is printed
 
  90   # some kind of comment is printed
 
  93   # reason for something is printed (part, quit, kick, ..)
 
  94   reason = "{comment $*}";
 
  96   # mode change is printed ([+o nick])
 
  97   mode = "{comment $*}";
 
 100   ## channel specific messages
 
 103   # highlighted nick/host is printed (joins)
 
 104   channick_hilight = "%C$*%n";
 
 105   chanhost_hilight = "{nickhost %c$*%n}";
 
 107   # nick/host is printed (parts, quits, etc.)
 
 109   chanhost = "{nickhost $*}";
 
 111   # highlighted channel name is printed
 
 112   channelhilight = "%c$*%n";
 
 114   # ban/ban exception/invite list mask is printed
 
 121   # the basic styling of how to print message, $0 = nick mode, $1 = nick
 
 122   #msgnick = "$0$1-| %|";
 
 123   #msgnick = "%K<%n$0$1-%K>%n %|";
 
 124   msgnick = "%n$0$1- %K:%n %|";
 
 126   # message from you is printed. "msgownnick" specifies the styling of the
 
 127   # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
 
 130   # Example1: You want the message text to be green:
 
 131   #  ownmsgnick = "{msgnick $0 $1-}%g";
 
 132   # Example2.1: You want < and > chars to be yellow:
 
 133   #  ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
 
 134   #  (you'll also have to remove <> from replaces list above)
 
 135   # Example2.2: But you still want to keep <> grey for other messages:
 
 136   #  pubmsgnick = "%K{msgnick $0 $1-%K}%n";
 
 137   #  pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
 
 138   #  pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
 
 139   #  ownprivmsgnick = "%K{msgnick  $*%K}%n";
 
 140   #  privmsgnick = "%K{msgnick  %R$*%K}%n";
 
 142   # $0 = nick mode, $1 = nick
 
 143   ownmsgnick = "{msgnick %K$0%n $1-}";
 
 146   # public message in channel, $0 = nick mode, $1 = nick
 
 147   pubmsgnick = "{msgnick %K$0%n $1-}";
 
 150   # public message in channel meant for me, $0 = nick mode, $1 = nick
 
 151   pubmsgmenick = "{msgnick %K$0%n $1-}";
 
 154   # public highlighted message in channel
 
 155   # $0 = highlight color, $1 = nick mode, $2 = nick
 
 156   pubmsghinick = "{msgnick %K$1%n $0$2-%n}";
 
 158   # channel name is printed with message
 
 159   msgchannel = "%K:%c$*%n";
 
 161   # private message, $0 = nick, $1 = host
 
 162   privmsg = "[%R$0%K(%r$1-%K)%n] ";
 
 164   # private message from you, $0 = "msg", $1 = target nick
 
 165   ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
 
 167   # own private message in query
 
 168   ownprivmsgnick = "{msgnick  $*}";
 
 169   ownprivnick = "%_$*%n";
 
 171   # private message in query
 
 172   privmsgnick = "{msgnick  %R$*%n}";
 
 175   ## Actions (/ME stuff)
 
 178   # used internally by this theme
 
 179   action_core = "%_* $*%n";
 
 181   # generic one that's used by most actions
 
 182   action = "{action_core $*} ";
 
 184   # own action, both private/public
 
 185   ownaction = "{action $*}";
 
 187   # own action with target, both private/public
 
 188   ownaction_target = "{action_core $0}%K:%c$1%n ";
 
 190   # private action sent by others
 
 191   pvtaction = "%_ (*) $*%n ";
 
 192   pvtaction_query = "{action $*}";
 
 194   # public action sent by others
 
 195   pubaction = "{action $*}";
 
 203   whois = "%# $[8]0 : $1-";
 
 206   ownnotice = "[%r$0%K(%R$1-%K)]%n ";
 
 207   notice = "%K-%M$*%K-%n ";
 
 208   pubnotice_channel = "%K:%m$*";
 
 209   pvtnotice_host = "%K(%m$*%K)";
 
 210   servernotice = "%g!$*%n ";
 
 213   ownctcp = "[%r$0%K(%R$1-%K)] ";
 
 218   wallop_nick = "%n$*";
 
 219   wallop_action = "%_ * $*%n ";
 
 227   names_nick = "[%_$0%_$1-] ";
 
 228   names_nick_op = "{names_nick $*}";
 
 229   names_nick_halfop = "{names_nick $*}";
 
 230   names_nick_voice = "{names_nick $*}";
 
 231   names_users = "[%g$*%n]";
 
 232   names_channel = "%G$*%n";
 
 238   # DCC chat, own msg/action
 
 239   dccownmsg = "[%r$0%K($1-%K)%n] ";
 
 240   dccownnick = "%R$*%n";
 
 241   dccownquerynick = "%_$*%n";
 
 242   dccownaction = "{action $*}";
 
 243   dccownaction_target = "{action_core $0}%K:%c$1%n ";
 
 246   dccmsg = "[%G$1-%K(%g$0%K)%n] ";
 
 247   dccquerynick = "%G$*%n";
 
 248   dccaction = "%_ (*dcc*) $*%n %|";
 
 254   # default background for all statusbars. You can also give
 
 255   # the default foreground color for statusbar items.
 
 256   sb_background = "%n%w";
 
 258   # default backround for "default" statusbar group
 
 259   sb_default_bg = "%0";
 
 260   # background for prompt / input line
 
 262   # background for info statusbar
 
 264   # background for topicbar (same default)
 
 265   sb_topic_bg = "%N%c";
 
 267   # text at the beginning of statusbars. sb-item already puts
 
 268   # space there,so we don't use anything by default.
 
 270   # text at the end of statusbars. Use space so that it's never
 
 274   topicsbstart = "{sbstart $*}";
 
 275   topicsbend = "{sbend $*}";
 
 283   sbservertag = "%K:%c$0%K (^X to switch)";
 
 284   sbnickmode = "%K$0%N";
 
 286   # activity in statusbar
 
 291   sb_act_text = "%K$*";
 
 293   sb_act_msg = "%n%9$*";
 
 295   sb_act_hilight = "%M$*";
 
 296   # hilight with specified color, $0 = color, $1 = text
 
 297   sb_act_hilight_color = "$0$1-%n";
 
 298   sb_act_special = "%m$*";
 
 299   sb_act_none = "%K$*";
 
 304   flag_unknown = "%Y?";
 
 307   pubmsghinick_signed = "{msgnick {flag_signed} $0 $2-%n}";
 
 308   pubmsghinick_unknown = "{msgnick {flag_unknown} $0 $2-%n}";
 
 309   pubmsghinick_failed = "{msgnick {flag_failed} $0 $2-%n}";
 
 311   #pubmsgmenick_signed = "%g<{flag_signed}$1->%n %|";
 
 312   #pubmsgmenick_unknown = "%g<{flag_unknown}$1->%n %|";
 
 313   #pubmsgmenick_failed = "%g<{flag_failed}$1->%n %|";
 
 314   pubmsgmenick_signed = "{msgnick {flag_signed} $0 $2-%n}";
 
 315   pubmsgmenick_unknown = "{msgnick {flag_unknown} $0 $2-%n}";
 
 316   pubmsgmenick_failed = "{msgnick {flag_failed} $0 $2-%n}";
 
 318   pubmsgnick_signed = "{msgnick {flag_signed}$0 $1-}";
 
 319   pubmsgnick_unknown = "{msgnick {flag_unknown}$0 $1-}";
 
 320   pubmsgnick_failed = "{msgnick {flag_failed}$0 $1-}";
 
 322   privmsg_signed = "{privmsg {flag_signed}$0 $1}";
 
 323   privmsg_unknown = "{privmsg {flag_unknown}$0 $1}";
 
 324   privmsg_failed = "{privmsg {flag_failed}$0 $1}";
 
 326   privmsgnick_signed = "{privmsgnick {flag_signed}$0}";
 
 327   privmsgnick_unknown = "{privmsgnick {flag_unknown}$0}";
 
 328   privmsgnick_failed = "{privmsgnick {flag_failed}$0}";
 
 330   ownmsgnick_signed = "{msgnick {flag_signed} $1-}%g";
 
 331   ownprivmsg_signed = "->*%c{flag_signed}$1-%n* %g";
 
 332   ownprivmsgnick_signed = "->*%c{flag_signed}$0%n* %g$1-";
 
 336     timestamp = "{timestamp %K%%H:%%M:%%S%n }";
 
 337     pubmsg = "{pubmsgnick $2 {pubnick \00307$[-12]0}}$1";
 
 338     pubmsg_channel = "{pubmsgnick $3 {pubnick $[-12]0}{msgchannel $1}}$2";
 
 339     own_msg = "{ownmsgnick $2 {ownnick $[-12]0}}$1";
 
 340     own_msg_channel = "{ownmsgnick $3 {ownnick $[-12]0}{msgchannel $1}}$2";
 
 341     pubmsg_me = "{pubmsgmenick $2 {menick $[-12]0}}$1";
 
 342     pubmsg_me_channel = "{pubmsgmenick $3 {menick $[-12]0}{msgchannel $1}}$2";
 
 343     pubmsg_hilight = "{pubmsghinick $0 $3 $[-12]1}$2";
 
 344     pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[-12]1{msgchannel $2}}$3";
 
 346   "Irssi::Script::adv_windowlist" = {
 
 347     #awl_display_header = "%8%K$C";
 
 348     awl_display_header = "";
 
 349     awl_display_key = "%C$Q%W:$H$C$S";
 
 350     awl_display_key_active = "%C$Q%W:$H$C$S";
 
 352   "Irssi::Script::nickcolor" = {
 
 353     pubmsg_hilight = "{pubmsghinick $0 $3 $[-9]1}$2";