Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.16 KB | None | 0 0
  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. [ Read 317 lines ]
  50.  
  51. root@synbyte:~# cat .irssi/synbyte.theme
  52. # When testing changes, the easiest way to reload the theme is with /RELOAD.
  53. # This reloads the configuration file too, so if you did any changes remember
  54. # to /SAVE it first. Remember also that /SAVE overwrites the theme file with
  55. # old data so keep backups :)
  56.  
  57. # TEMPLATES:
  58.  
  59. # The real text formats that irssi uses are the ones you can find with
  60. # /FORMAT command. Back in the old days all the colors and texts were mixed
  61. # up in those formats, and it was really hard to change the colors since you
  62. # might have had to change them in tens of different places. So, then came
  63. # this templating system.
  64.  
  65. # Now the /FORMATs don't have any colors in them, and they also have very
  66. # little other styling. Most of the stuff you need to change is in this
  67. # theme file. If you can't change something here, you can always go back
  68. # to change the /FORMATs directly, they're also saved in these .theme files.
  69.  
  70. # So .. the templates. They're those {blahblah} parts you see all over the
  71. # /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
  72. # When irssi sees this kind of text, it goes to find "name" from abstracts
  73. # block below and sets "parameter1" into $0 and "parameter2" into $1 (you
  74. # can have more parameters of course). Templates can have subtemplates.
  75. # Here's a small example:
  76. # /FORMAT format hello {colorify {underline world}}
  77. # abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
  78. # When irssi expands the templates in "format", the final string would be:
  79. # hello %G%Uworld%U%n
  80. # ie. underlined bright green "world" text.
  81. # and why "$0-", why not "$0"? $0 would only mean the first parameter,
  82. # $0- means all the parameters. With {underline hello world} you'd really
  83. # want to underline both of the words, not just the hello (and world would
  84. # actually be removed entirely).
  85.  
  86. # COLORS:
  87.  
  88. # You can find definitions for the color format codes in docs/formats.txt.
  89.  
  90. # There's one difference here though. %n format. Normally it means the
  91. # default color of the terminal (white mostly), but here it means the
  92. # "reset color back to the one it was in higher template". For example
  93. # if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
  94. # print yellow "foo" (as set with %Y) but "bar" would be green, which was
  95. # set at the beginning before the {foo} template. If there wasn't the %g
  96. # at start, the normal behaviour of %n would occur. If you _really_ want
  97. # to use the terminal's default color, use %N.
  98.  
  99. #############################################################################
  100.  
  101. # default foreground color (%N) - -1 is the "default terminal color"
  102. default_color = "-1";
  103.  
  104. # print timestamp/servertag at the end of line, not at beginning
  105. info_eol = "false";
  106.  
  107. # these characters are automatically replaced with specified color
  108. # (dark grey by default)
  109. replaces = { "[]=" = "%K$*%n"; };
  110.  
  111. abstracts = {
  112. ##
  113. ## generic
  114. ##
  115.  
  116. # text to insert at the beginning of each non-message line
  117. line_start = "%B-%n!%B-%n ";
  118.  
  119. # timestamp styling, nothing by default
  120. timestamp = "$*";
  121.  
  122. # any kind of text that needs hilighting, default is to bold
  123. hilight = "%_$*%_";
  124.  
  125. # any kind of error message, default is bright red
  126. error = "%R$*%n";
  127.  
  128. # channel name is printed
  129. channel = "%_$*%_";
  130.  
  131. # nick is printed
  132. nick = "%_$*%_";
  133.  
  134. # nick host is printed
  135. nickhost = "[$*]";
  136.  
  137. # server name is printed
  138. server = "%_$*%_";
  139.  
  140. # some kind of comment is printed
  141. comment = "[$*]";
  142.  
  143. # reason for something is printed (part, quit, kick, ..)
  144. reason = "{comment $*}";
  145.  
  146. # mode change is printed ([+o nick])
  147. mode = "{comment $*}";
  148.  
  149. ##
  150. ## channel specific messages
  151. ##
  152.  
  153. # highlighted nick/host is printed (joins)
  154. channick_hilight = "%C$*%n";
  155. chanhost_hilight = "{nickhost %c$*%n}";
  156.  
  157. # nick/host is printed (parts, quits, etc.)
  158. channick = "%c$*%n";
  159. chanhost = "{nickhost $*}";
  160.  
  161. # highlighted channel name is printed
  162. channelhilight = "%c$*%n";
  163.  
  164. # ban/ban exception/invite list mask is printed
  165. ban = "%c$*%n";
  166.  
  167. ##
  168. ## messages
  169. ##
  170.  
  171. # the basic styling of how to print message, $0 = nick mode, $1 = nick
  172. msgnick = "%K<%n$0$1-%K>%n %|";
  173.  
  174. # message from you is printed. "msgownnick" specifies the styling of the
  175. # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
  176. # whole line.
  177.  
  178. # Example1: You want the message text to be green:
  179. # ownmsgnick = "{msgnick $0 $1-}%g";
  180. # Example2.1: You want < and > chars to be yellow:
  181. # ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
  182. # (you'll also have to remove <> from replaces list above)
  183. # Example2.2: But you still want to keep <> grey for other messages:
  184. # pubmsgnick = "%K{msgnick $0 $1-%K}%n";
  185. # pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
  186. # pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
  187. # ownprivmsgnick = "%K{msgnick $*%K}%n";
  188. # privmsgnick = "%K{msgnick %R$*%K}%n";
  189.  
  190. # $0 = nick mode, $1 = nick
  191. ownmsgnick = "{msgnick $0 $1-}";
  192. ownnick = "%_$*%n";
  193.  
  194. # public message in channel, $0 = nick mode, $1 = nick
  195. pubmsgnick = "{msgnick $0 $1-}";
  196. pubnick = "%N$*%n";
  197.  
  198. # public message in channel meant for me, $0 = nick mode, $1 = nick
  199. pubmsgmenick = "{msgnick $0 $1-}";
  200. menick = "%Y$*%n";
  201.  
  202. # public highlighted message in channel
  203. # $0 = highlight color, $1 = nick mode, $2 = nick
  204. pubmsghinick = "{msgnick $1 $0$2-%n}";
  205.  
  206. # channel name is printed with message
  207. msgchannel = "%K:%c$*%n";
  208.  
  209. # private message, $0 = nick, $1 = host
  210. privmsg = "[%R$0%K(%r$1-%K)%n] ";
  211.  
  212. # private message from you, $0 = "msg", $1 = target nick
  213. ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
  214.  
  215. # own private message in query
  216. ownprivmsgnick = "{msgnick $*}";
  217. ownprivnick = "%_$*%n";
  218.  
  219. # private message in query
  220. privmsgnick = "{msgnick %R$*%n}";
  221.  
  222. ##
  223. ## Actions (/ME stuff)
  224. ##
  225.  
  226. # used internally by this theme
  227. action_core = "%_ * $*%n";
  228.  
  229. # generic one that's used by most actions
  230. action = "{action_core $*} ";
  231.  
  232. # own action, both private/public
  233. ownaction = "{action $*}";
  234.  
  235. # own action with target, both private/public
  236. ownaction_target = "{action_core $0}%K:%c$1%n ";
  237.  
  238. # private action sent by others
  239. pvtaction = "%_ (*) $*%n ";
  240. pvtaction_query = "{action $*}";
  241.  
  242. # public action sent by others
  243. pubaction = "{action $*}";
  244.  
  245.  
  246. ##
  247. ## other IRC events
  248. ##
  249.  
  250. # whois
  251. whois = "%# $[8]0 : $1-";
  252.  
  253. # notices
  254. ownnotice = "[%r$0%K(%R$1-%K)]%n ";
  255. notice = "%K-%M$*%K-%n ";
  256. pubnotice_channel = "%K:%m$*";
  257. pvtnotice_host = "%K(%m$*%K)";
  258. servernotice = "%g!$*%n ";
  259.  
  260. # CTCPs
  261. ownctcp = "[%r$0%K(%R$1-%K)] ";
  262. ctcp = "%g$*%n";
  263.  
  264. # wallops
  265. wallop = "%_$*%n: ";
  266. wallop_nick = "%n$*";
  267. wallop_action = "%_ * $*%n ";
  268.  
  269. # netsplits
  270. netsplit = "%R$*%n";
  271. netjoin = "%C$*%n";
  272.  
  273. # /names list
  274. names_prefix = "";
  275. names_nick = "[%_$0%_$1-] ";
  276. names_nick_op = "{names_nick $*}";
  277. names_nick_halfop = "{names_nick $*}";
  278. names_nick_voice = "{names_nick $*}";
  279. names_users = "[%g$*%n]";
  280. names_channel = "%G$*%n";
  281.  
  282. # DCC
  283. dcc = "%g$*%n";
  284. dccfile = "%_$*%_";
  285.  
  286. # DCC chat, own msg/action
  287. dccownmsg = "[%r$0%K($1-%K)%n] ";
  288. dccownnick = "%R$*%n";
  289. dccownquerynick = "%_$*%n";
  290. dccownaction = "{action $*}";
  291. dccownaction_target = "{action_core $0}%K:%c$1%n ";
  292.  
  293. # DCC chat, others
  294. dccmsg = "[%G$1-%K(%g$0%K)%n] ";
  295. dccquerynick = "%G$*%n";
  296. dccaction = "%_ (*dcc*) $*%n %|";
  297.  
  298. ##
  299. ## statusbar
  300. ##
  301.  
  302. # default background for all statusbars. You can also give
  303. # the default foreground color for statusbar items.
  304. sb_background = "%K%w";
  305.  
  306. # default backround for "default" statusbar group
  307. #sb_default_bg = "%4";
  308. # background for prompt / input line
  309. sb_prompt_bg = "%n";
  310. # background for info statusbar
  311. sb_info_bg = "%8";
  312. # background for topicbar (same default)
  313. #sb_topic_bg = "%4";
  314.  
  315. # text at the beginning of statusbars. sb-item already puts
  316. # space there,so we don't use anything by default.
  317. sbstart = "";
  318. # text at the end of statusbars. Use space so that it's never
  319. # used for anything.
  320. sbend = " ";
  321.  
  322. topicsbstart = "{sbstart $*}";
  323. topicsbend = "{sbend $*}";
  324.  
  325. prompt = "[$*] ";
  326.  
  327. sb = " %c[%n$*%c]%n";
  328. sbmode = "(%c+%n$*)";
  329. sbaway = " (%GzZzZ%n)";
  330. sbservertag = ":$0 (change with ^X)";
  331. sbnickmode = "$0";
  332.  
  333. # activity in statusbar
  334.  
  335. # ',' separator
  336. sb_act_sep = "%c$*";
  337. # normal text
  338. sb_act_text = "%c$*";
  339. # public message
  340. sb_act_msg = "%W$*";
  341. # hilight
  342. sb_act_hilight = "%M$*";
  343. # hilight with specified color, $0 = color, $1 = text
  344. sb_act_hilight_color = "$0$1-%n";
  345. };
  346. formats = {
  347. "fe-common/core" = {
  348. own_msg = "{ownmsgnick {ownnick $[-11]0$2}}$1";
  349. own_msg_channel = "{ownmsgnick {ownnick $[-11]0$3}{msgchannel $1}}$2";
  350. own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-11]2}}$1";
  351. pubmsg_me = "{pubmsgmenick {menick $[-11]0}$2}$1";
  352. pubmsg_me_channel = "{pubmsgmenick {menick $[-11]0$3}{msgchannel $1}}$2";
  353. pubmsg_hilight = "{pubmsghinick $0 $0 $[-11]1$3%n}$2";
  354. pubmsg_hilight_channel = "{pubmsghinick $0 $[-11]1$4{msgchannel $2}}$3";
  355. pubmsg = "{pubmsgnick {pubnick $[-11]0$2}}$1";
  356. pubmsg_channel = "{pubmsgnick {pubnick $[-11]0$2}}$1";
  357. msg_private_query = "{privmsgnick $[-11]0}$2";
  358. };
  359. "Irssi::Script::nickcolor" = {
  360. pubmsg_hilight = "{pubmsghinick $0 $0 $[-11]1$3%n}$2";
  361. };
  362. "fe-common/irc" = {
  363. own_action = "{ownaction $[-9]0} $1";
  364. action_private = "{pvtaction $[-9]0}$1";
  365. action_private_query = "{pvtaction_query $[-9]0} $2";
  366. action_public = "{pubaction $[-9]0}$1";
  367. };
  368. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement