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# these characters are automatically replaced with specified color 51# (dark grey by default) 52replaces = { "[]=" = "%B$0-%w"; }; 53 54abstracts = { 55 ## 56 ## generic 57 ## 58 59 # text to insert at the beginning of each non-message line 60 line_start = "%B|-%gINFO%B >%w "; 61 62 # timestamp styling, nothing by default 63 timestamp = "%c$0-%w"; 64 65 # any kind of text that needs hilighting, default is to bold 66 hilight = "%_$0-%_"; 67 68 # any kind of error message, default is bright red 69 error = "%R$0-%w"; 70 71 # channel name is printed 72 channel = "%g$0-%w"; 73 74 # nick is printed 75 nick = "%_$0-%_"; 76 77 # nick host is printed 78 nickhost = "[$0-]"; 79 80 # server name is printed 81 server = "%_$0-%_"; 82 83 # some kind of comment is printed 84 comment = "[$0-]"; 85 86 # reason for something is printed (part, quit, kick, ..) 87 reason = "{comment $0-}"; 88 89 # mode change is printed ([+o nick]) 90 mode = "{comment $0-}"; 91 92 ## 93 ## channel specific messages 94 ## 95 96 # highlighted nick/host is printed (joins) 97 channick_hilight = "%g$0-%w"; 98 chanhost_hilight = "{nickhost %g$0-%w}"; 99 100 # nick/host is printed (parts, quits, etc.) 101 channick = "%g$0-%w"; 102 chanhost = "{nickhost $0-}"; 103 104 # highlighted channel name is printed 105 channelhilight = "%g$0-%w"; 106 107 # ban/ban exception/invite list mask is printed 108 ban = "%g$0-%w"; 109 110 ## 111 ## messages 112 ## 113 114 # the basic styling of how to print message, $0 = nick mode, $1 = nick 115 msgnick = "%_$0%_$1- %|"; 116 ownmsgnick = "{msgnick %B|%w$0%_ $1-%B >}%W"; 117 ownnick = "%G$0-%w"; 118 119 # public message in channel, $0 = nick mode, $1 = nick 120 121 pubmsgnick = "{msgnick %B|%w$0%_ %g$1-%B >}%w"; 122 pubnick = "$0-%w"; 123 124 # public message in channel meant for me, $0 = nick mode, $1 = nick 125 pubmsgmenick = "{msgnick %B|%W$0 %R$1-%B >}%W"; 126 menick = "%R$0-%w"; 127 128 # public highlighted message in channel 129 # $0 = highlight color, $1 = nick mode, $2 = nick 130 pubmsghinick = "{msgnick %B|%W$1 %R$2-%B >}%W"; 131 132 # channel name is printed with message 133 msgchannel = "%W:%c$0-%n"; 134 135 # private message, $0 = nick, $1 = host 136 privmsg = "[%Y$0%K(%y$1-%K)%w "; 137 138 # private message from you, $0 = "msg", $1 = target nick 139 ownprivmsg = "%B[%G$0%g(%Y$1-%g)] %w"; 140 141 # own private message in query 142 ownprivmsgnick = "{msgnick $0-}"; 143 ownprivnick = "%B[%B-%G$0- %B>%w"; 144 145 # private message in query 146 privmsgnick = "{msgnick %B[%B-%g$0- %B>%w}"; 147 148 ## 149 ## Actions (/ME stuff) 150 ## 151 152 # used internally by this theme 153 action_core = "%R > %R$0-%n"; 154 155 # generic one that's used by most actions 156 action = "{action_core $0-} "; 157 158 # own action, both private/public 159 ownaction = "{action $0-}"; 160 161 # own action with target, both private/public 162 ownaction_target = "{action_core $0}%K:%c$1%n "; 163 164 # private action sent by others 165 pvtaction = " (%B>%B>%B>%n) %R$0-%n "; 166 pvtaction_query = "{action $0-}"; 167 168 # public action sent by others 169 pubaction = "{action $0-}"; 170 171 172 ## 173 ## other IRC events 174 ## 175 176 # notices 177 ownnotice = "[%G$0%g(%Y$1-%g)]%w "; 178 notice = "%B[%R$0-%B]%w "; 179 pubnotice_channel = "%W:%m$0-"; 180 pvtnotice_host = "%g(%Y$0-%g)"; 181 servernotice = "%g!$0-%w "; 182 183 # CTCPs 184 ownctcp = "[%c$0%K(%C$1-%K)] "; 185 ctcp = "%g$0-%n"; 186 187 # wallops 188 wallop = "%W$0-%n: "; 189 wallop_nick = "%n$0-"; 190 wallop_action = "%W * $0-%n "; 191 192 # netsplits 193 netsplit = "%R$0-%w"; 194 netjoin = "%G$0-%w"; 195 196 # /names list 197 names_nick = "[%_$0%_%g$1-%b] "; 198 names_users = "[%c$0-%g]"; 199 names_channel = "%G$0-%c"; 200 201 # DCC 202 dcc = "[%w$0-%w]"; 203 dccfile = "%_$0-%_"; 204 205 # DCC chat, own msg/action 206 dccownmsg = "[%r$0%K($1-%K)%n] "; 207 dccownnick = "<%R$0-%n>"; 208 dccownaction = "{action $0-}"; 209 dccownaction_target = "{action_core $0}%K:%c$1%n "; 210 dccaction = " %R>%Y>%G>%n %C$0-%n %|"; 211 # DCC chat, others 212 dccmsg = "[%G$1-%K(%g$0%K)%n] "; 213 dccquerynick = "%B[-%g$0- %B>%w"; 214 215 ## 216 ## statusbar 217 ## 218 219 # background of statusbar 220 sb_background = "%4"; 221 prompt = "%B[%g$*%B] "; 222 # default statusbar item style 223 sb = "%c[%n$0-%c]%n"; 224 225 sbmode = "(%_+%n$0-)"; 226 sbaway = " (%RAWAY%n)"; 227 sbservertag = ":$0 (change with ^X)"; 228 sbmore = "%_-- more --%_"; 229 sblag = "{sb Lag: $0-}"; 230 sbmail = "{sb Mail: $0-}"; 231 # activity. Det is used for hilights when display doesn't support colors 232 233 sb_act_hilight = "%R$*"; 234 sbact = "{sb {sbact_act $0}{sbact_det $1}}"; 235 sbact_act = "Act: $0-"; 236 sbact_det = " Det: $0-"; 237}; 238formats = { 239 "fe-common/core" = { pubmsg = "{pubmsgnick $2 {pubnick $0}}$1"; }; 240}; 241