lpfManiak

lpf irssi theme

Aug 22nd, 2013
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.89 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 cxolors 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) - -1 is the "default terminal color"
  51. default_color = "-8";
  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 = { "[]=" = "$*"; };
  59.  
  60. abstracts = {
  61. ##
  62. ## generic
  63. ##
  64.  
  65. # text to insert at the beginning of each non-message line
  66. line_start = "";
  67. # timestamp styling, nothing by default
  68. timestamp = " %n%k$*%n";
  69.  
  70. # any kind of text that needs hilighting, default is to bold
  71. hilight = "%_$*%_";
  72.  
  73. # any kind of error message, default is bright red
  74. error = "%R$*%n";
  75.  
  76. # channel name is printed
  77. channel = "$*";
  78.  
  79. # nick is printed
  80. nick = "$*";
  81.  
  82. # nick host is printed
  83. nickhost = "<$*>";
  84.  
  85. # server name is printed
  86. server = "%_$*%_";
  87.  
  88. # some kind of comment is printed
  89. comment = "($*)";
  90.  
  91. # reason for something is printed (part, quit, kick, ..)
  92. reason = "{comment $*}";
  93.  
  94. # mode change is printed ([+o nick])
  95. mode = "{comment $*}";
  96.  
  97. ##
  98. ## channel specific messages
  99. ##
  100.  
  101. # highlighted nick/host is printed (joins)
  102. channick_hilight = "$0-";
  103. chanhost_hilight = "{nickhost $*}";
  104.  
  105. # nick/host is printed (parts, quits, etc.)
  106. channick = "$0-";
  107. chanhost = "{nickhost $*}";
  108.  
  109. # highlighted channel name is printed
  110. channelhilight = "%g$0-%n";
  111.  
  112. # ban/ban exception/invite list mask is printed
  113. ban = "%G$*%n";
  114.  
  115. ##
  116. ## messages
  117. ##
  118.  
  119. # the basic styling of how to print message, $0 = nick mode, $1 = nick ::
  120. msgnick = "%y$0 %n$1- %w│%y %|";
  121.  
  122.  
  123. # $0 = nick mode, $1 = nick
  124. ownmsgnick = "%y{msgnick $0 $1-%Y}%n";
  125. ownnick = "%K$*%n";
  126.  
  127. # public message in channel, $0 = nick mode, $1 = nick
  128. pubmsgnick = "%C{msgnick $0 $1-%C}%n";
  129. pubnick = "%K$*%n";
  130.  
  131. # public message in channel meant for me, $0 = nick mode, $1 = nick
  132. pubmsgmenick = "%c{msgnick $0 $1-%c}%n";
  133. menick = "%Y$*%n";
  134.  
  135. # public highlighted message in channel
  136. # $0 = highlight color, $1 = nick mode, $2 = nick
  137. pubmsghinick = "%c{msgnick %R$1 %Y$0%Y$2-%c}%n";
  138.  
  139. # channel name is printed with message
  140. msgchannel = "%K:%c$*%n";
  141.  
  142. # private message, $0 = nick, $1 = host
  143. privmsg = "[%R$0%K(%r$1-%K)%n] ";
  144.  
  145. # private message from you, $0 = "msg", $1 = target nick
  146. ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
  147.  
  148. # own private message in query
  149. ownprivmsgnick = "%Y{msgnick $*%Y}%n";
  150. ownprivnick = "%K$*%n";
  151.  
  152. # private message in query
  153. privmsgnick = "%g{msgnick %K$*%n%g}%K";
  154.  
  155. ##
  156. ## Actions (/ME stuff)
  157. ##
  158.  
  159. # used internally by this theme
  160. # action_core = "$*";
  161. sak = "|";
  162. #action_core = " %R*%b++ %k$0 %n";
  163.  
  164. # generic one that's used by most actions
  165. # action = "{action_core $*}";
  166. action = " %y$* %w│%y *%|";
  167.  
  168. # own action, both private/public
  169. ownaction = "{action $0}";
  170.  
  171. # own action with target, both private/public
  172. ownaction_target = "{action_core $0}%K:%c$1%n ";
  173.  
  174. # private action sent by others
  175. pvtaction = "%K (*) $*%n ";
  176. pvtaction_query = "{action $*}";
  177.  
  178. # public action sent by others
  179. pubaction = "{action $*}";
  180.  
  181.  
  182. ##
  183. ## other IRC events
  184. ##
  185.  
  186. # whois
  187. whois = "%# $[8]0 : $1-";
  188.  
  189. # notices
  190. ownnotice = "%y$0 to %g$1-%n ";
  191. notice = "%Knotice from %y$0:%n ";
  192. pubnotice_channel = ":%m$*";
  193. pvtnotice_host = "%g($*)";
  194. servernotice = "%g!$*%n ";
  195.  
  196. # CTCPs
  197. ownctcp = " %w│ %K$0 %g$1-%K ";
  198. ctcp = " %w│ %g$*%n";
  199.  
  200. # wallops
  201. wallop = "%K$*%n: ";
  202. wallop_nick = "%n$*";
  203. wallop_action = "%K * $*%n ";
  204.  
  205. # netsplits
  206. netsplit = "%R$*%n";
  207. netjoin = "%C$*%n";
  208.  
  209. # /names list
  210. names_prefix = " %w│%y%n ";
  211. names_nick = "[$0%K$1-] ";
  212. names_nick_op = "{names_nick %g$*%n}";
  213. names_nick_halfop = "{names_nick $*}";
  214. names_nick_voice = "{names_nick %y$*%n}";
  215. names_users = " %w│%y%n [$*]";
  216. names_channel = "%R$*%n";
  217.  
  218. # DCC
  219. dcc = "%g$*%n";
  220. dccfile = "%_$*%_";
  221.  
  222. # DCC chat, own msg/action
  223. dccownmsg = "[%r$0%K($1-%K)%n] ";
  224. dccownnick = "%R$*%n";
  225. dccownquerynick = "%K$*%n";
  226. dccownaction = "{action $*}";
  227. dccownaction_target = "{action_core $0}%K:%c$1%n ";
  228.  
  229. # DCC chat, others
  230. dccmsg = "[%G$1-%K(%g$0%K)%n] ";
  231. dccquerynick = "%G$*%n";
  232. dccaction = "%K (*dcc*) $*%n %|";
  233.  
  234. ##
  235. ## statusbar
  236. ##
  237.  
  238. # default background for all statusbars. You can also give
  239. # the default foreground color for statusbar items.
  240. sb_background = "%n%_%Y";
  241.  
  242. # default backround for "default" statusbar group
  243. #sb_default_bg = "%K";
  244. # background for prompt / input line
  245. sb_prompt_bg = "%n";
  246. # background for info statusbar
  247. sb_info_bg = "%k";
  248. # background for topicbar (same default)
  249. sb_topic_bg = "%_%G";
  250.  
  251. # text at the beginning of statusbars. sb-item already puts
  252. # space there,so we don't use anything by default.
  253. sbstart = "";
  254. # text at the end of statusbars. Use space so that it's never
  255. # used for anything.
  256. sbend = " ";
  257.  
  258. topicsbstart = "{sbstart $*}";
  259. topicsbend = "{sbend $*}";
  260.  
  261. #prompt = " %y$0: %n";
  262. #prompt = "%6 %Klpf %7%c⮀%K $0 %N%W⮀%N ";
  263. prompt = "%6%K $0 %N%c⮀%N ";
  264. sb = " %y%_%_%G$*%_%y%n";
  265. sbmode = "(%_%g$*%_%n)";
  266. sbaway = " (%Raway%n)";
  267. sbservertag = ":%y$0";
  268.  
  269. # activity in statusbar
  270.  
  271. # ',' separator
  272. sb_act_sep = " ";
  273. # normal text
  274. sb_act_text = "%y$*";
  275. # public message
  276. sb_act_msg = "%Y$*";
  277. # hilight
  278. sb_act_hilight = "%8%$r*";
  279. # hilight with specified color, $0 = color, $1 = text
  280. sb_act_hilight_color = "%r$0%r$1-%n";
  281.  
  282. #Usercunt saker måste ladda usercount.pl
  283.  
  284. sb_usercount = "{sb %_$0%_ nicks ($1-)}";
  285. # sb_uc_ircops = "%_*%$*";
  286. sb_uc_ops = "%R@%n$*";
  287. # sb_uc_halfops = "%_%%%_$*";
  288. sb_uc_voices = "%y+%n$*";
  289. sb_uc_normal = "$* normala";
  290. sb_uc_space = " ";
  291.  
  292.  
  293.  
  294. };
  295.  
  296. formats = {
  297. "fe-common/core" = {
  298.  
  299. #part = "{channick_hilight $[-11]0} %b<<%K parts ({reason $1})";
  300. #quit = "{channick_hilight $[-11]0} %b<<%K quits ({reason $1})";
  301. #kick = " %W« %w│%y%W %W{channick $0} was kicked by %W{nick $2} %W{reason $3}";
  302. #join = " %W» %w│%y%W %W{channick $0} joins {chanhost %W$1}";
  303. #part = "%W{channick $[-11]0} %W< parts %W{nick $1} {reason $2}";
  304. #part = " %W« %w│%y%W {channick $0} parts {reason %W$3}";
  305. #quit ="%W{channick $[-11]0} %W<%W quit {reason %W$2}";
  306. #quit = " %W« %w│%y%W {channick $0} quit {reason %W$2}";
  307. join = "%W{channick $[-10]0} %w│ »%W joins {chanhost %W$1}";
  308. part = "%W{channick $[-10]0} %w│ «%W parts {reason %W$3}";
  309. quit = "%W{channick $[-10]0} %w│ «%W quit {reason %W$2}";
  310. kick = "%W{channick $[-10]0} %w│%W « kicked by %W{nick $2} %W{reason $3}";
  311. nick_changed = "%W{channick $[-10]0} %w│%W = {channick_hilight $1}";
  312. own_msg = "{ownmsgnick $2 {ownnick $[-0]0}}$1";
  313. own_msg_channel = "{ownmsgnick $3 {ownnick $[-0]0}{msgchannel $1}}$2";
  314. pubmsg_me = "{pubmsgmenick $2 {menick $[-0]0}}$1";
  315. pubmsg_me_channel = "{pubmsgmenick $3 {menick $[-0]0}{msgchannel $1}}$2";
  316. pubmsg_hilight = "{pubmsghinick $0 $3 $[-0]1%n}$2";
  317. pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[-0]1{msgchannel $2}}$3";
  318. pubmsg = "{pubmsgnick $2 {pubnick %w$[-0]0}}$1";
  319. pubmsg_channel = "{pubmsgnick $2 {pubnick %w$[-0]0}}$1";
  320. own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-0]2}}$1";
  321. msg_private_query = "{privmsgnick $[-0]0}$2";
  322. line_start_irssi = " %W##### %w│%W ";
  323. new_topic = "{channick_hilight $[-10]0} %w│%y%K topic: %k$2";
  324. servertag = "$[-10]0 %w│%W ";
  325.  
  326. };
  327. "fe-common/irc" = {
  328. chanmode_change = "%W{nick $[-10]2} %w│%W @ {channel %W$0} {mode %W$1}";
  329. #chanmode_change = " %W@ %w│ %W{nick $2} > {channel %W$0} {mode %W$1}";
  330. #server_chanmode_change = "{netsplit ServerMode}/{channelhilight $0}: {mode $1} by {nick $2}";
  331. whois = "{nick $0} {nickhost $1@$2}%: ircname : $3";
  332. topic = " %w│%y%n Topic for {channelhilight $0}: $1";
  333. topic_info = " %w│%y%n Topic set by {nick $0} {comment $1}";
  334. #channel_created = "Channel {channelhilight $0} created $1";
  335. channel_created = "";
  336.  
  337. own_action = "{ownaction $[-0]0} $1";
  338. action_private = "{pvtaction $[-0]0}$1";
  339. action_private_query = "{pvtaction_query $[-0]0} $2";
  340. action_public = "{pubaction $[-0]0}$1";
  341. };
  342. };
Advertisement
Add Comment
Please, Sign In to add comment