pastebin - collaborative debugging tool
linux.kpaste.net RSS


irssi_matrix_theme
Posted by Anonymous on Sun 29th Jan 2012 21:48
raw | new post

  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. # default foreground color (%N) - -1 is the "default terminal color"
  51. default_color = "-1";
  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 = { "[]=" = "%K$*%n"; };
  59.  
  60. abstracts = {
  61.   ##
  62.   ## generic
  63.   ##
  64.  
  65.   # text to insert at the beginning of each non-message line
  66.   #line_start = "%g-%W!%g-%n ";
  67.   line_start = "%W%n";
  68.  
  69.   # timestamp styling, nothing by default
  70.   timestamp = "$*";
  71.  
  72.   # any kind of text that needs hilighting, default is to bold
  73.   hilight = "%_$*%_";
  74.  
  75.   # any kind of error message, default is bright red
  76.   error = "%R$*%n";
  77.  
  78.   # channel name is printed
  79.   channel = "%_$*%_";
  80.  
  81.   # nick is printed
  82.   nick = "%_$*%_";
  83.  
  84.   # nick host is printed
  85.   nickhost = "[$*]";
  86.  
  87.   # server name is printed
  88.   server = "%_$*%_";
  89.  
  90.   # some kind of comment is printed
  91.   comment = "[$*]";
  92.  
  93.   # reason for something is printed (part, quit, kick, ..)
  94.   reason = "{comment $*}";
  95.  
  96.   # mode change is printed ([+o nick])
  97.   mode = "{comment $*}";
  98.  
  99.   ##
  100.   ## channel specific messages
  101.   ##
  102.  
  103.   # highlighted nick/host is printed (joins)
  104.   channick_hilight = "%G$*%n";
  105.   chanhost_hilight = "{nickhost %G$*%n}";
  106.  
  107.   # nick/host is printed (parts, quits, etc.)
  108.   channick = "%g$*%n";
  109.   chanhost = "{nickhost %g$*%n}";
  110.  
  111.   # highlighted channel name is printed
  112.   channelhilight = "%g$*%n";
  113.  
  114.   # ban/ban exception/invite list mask is printed
  115.   ban = "%g$*%n";
  116.  
  117.   ##
  118.   ## messages
  119.   ##
  120.  
  121.   # the basic styling of how to print message, $0 = nick mode, $1 = nick
  122.   #msgnick = "%W<%n%g$0%n$1-%W>%n %|";
  123.   msgnick = "%n%g$0%n$1-%W:%n %|";
  124.  
  125.   # message from you is printed. "msgownnick" specifies the styling of the
  126.   # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
  127.   # whole line.
  128.  
  129.   # Example1: You want the message text to be green:
  130.   #  ownmsgnick = "{msgnick $0 $1-}%g";
  131.   # Example2.1: You want < and > chars to be yellow:
  132.   #  ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
  133.   #  (you'll also have to remove <> from replaces list above)
  134.   # Example2.2: But you still want to keep <> grey for other messages:
  135.   #  pubmsgnick = "%K{msgnick $0 $1-%K}%n";
  136.   #  pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
  137.   #  pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
  138.   #  ownprivmsgnick = "%K{msgnick  $*%K}%n";
  139.   #  privmsgnick = "%K{msgnick  %R$*%K}%n";
  140.  
  141.   # $0 = nick mode, $1 = nick
  142.   ownmsgnick = "{msgnick $0 $1-}";
  143.   ownnick = "%W$*%n";
  144.  
  145.   # public message in channel, $0 = nick mode, $1 = nick
  146.   pubmsgnick = "{msgnick $0 $1-}";
  147.   pubnick = "%N$*%n";
  148.  
  149.   # public message in channel meant for me, $0 = nick mode, $1 = nick
  150.   pubmsgmenick = "{msgnick $0 $1-}";
  151.   menick = "%r$*%n";
  152.  
  153.   # public highlighted message in channel
  154.   # $0 = highlight color, $1 = nick mode, $2 = nick
  155.   pubmsghinick = "{msgnick $1 $0$2-%n}%R";
  156.  
  157.   # channel name is printed with message
  158.   msgchannel = "%K:%g$*%n";
  159.  
  160.   # private message, $0 = nick, $1 = host
  161.   privmsg = "[%R$0%K(%r$1-%K)%n] ";
  162.  
  163.   # private message from you, $0 = "msg", $1 = target nick
  164.   ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
  165.  
  166.   # own private message in query
  167.   ownprivmsgnick = "{msgnick  $*}";
  168.   ownprivnick = "%W$*%n";
  169.  
  170.   # private message in query
  171.   privmsgnick = "{msgnick  %R$*%n}";
  172.  
  173.   ##
  174.   ## Actions (/ME stuff)
  175.   ##
  176.  
  177.   # used internally by this theme
  178.   action_core = "%W * $*%n";
  179.  
  180.   # generic one that's used by most actions
  181.   action = "{action_core $*} ";
  182.  
  183.   # own action, both private/public
  184.   ownaction = "{action $*}";
  185.  
  186.   # own action with target, both private/public
  187.   ownaction_target = "{action_core $0}%K:%g$1%n ";
  188.  
  189.   # private action sent by others
  190.   pvtaction = "%W (*) $*%n ";
  191.   pvtaction_query = "{action $*}";
  192.  
  193.   # public action sent by others
  194.   pubaction = "{action $*}";
  195.  
  196.  
  197.   ##
  198.   ## other IRC events
  199.   ##
  200.  
  201.   # whois
  202.   #whois = "%# $[8]0 : $1-";
  203.   whois = "%g $[8]0 : $*%n";
  204.  
  205.   # notices
  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 ";
  211.  
  212.   # CTCPs
  213.   ownctcp = "[%r$0%K(%R$1-%K)] ";
  214.   ctcp = "%g$*%n";
  215.  
  216.   # wallops
  217.   wallop = "%W$*%n: ";
  218.   wallop_nick = "%n$*";
  219.   wallop_action = "%W * $*%n ";
  220.  
  221.   # netsplits
  222.   netsplit = "%R$*%n";
  223.   netjoin = "%G$*%n";
  224.  
  225.   # /names list
  226.   names_prefix = "";
  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";
  233.  
  234.   # DCC
  235.   dcc = "%g$*%n";
  236.   dccfile = "%_$*%_";
  237.  
  238.   # DCC chat, own msg/action
  239.   dccownmsg = "[%r$0%K($1-%K)%n] ";
  240.   dccownnick = "%R$*%n";
  241.   dccownquerynick = "%W$*%n";
  242.   dccownaction = "{action $*}";
  243.   dccownaction_target = "{action_core $0}%K:%g$1%n ";
  244.  
  245.   # DCC chat, others
  246.   dccmsg = "[%G$1-%K(%g$0%K)%n] ";
  247.   dccquerynick = "%G$*%n";
  248.   dccaction = "%W (*dcc*) $*%n %|";
  249.  
  250.   ##
  251.   ## statusbar
  252.   ##
  253.  
  254.   # default background for all statusbars. You can also give
  255.   # the default foreground color for statusbar items.
  256.   #sb_background = "%4%w";
  257.   sb_background = "%n";
  258.  
  259.   # default backround for "default" statusbar group
  260.   sb_default_bg = "%0";
  261.  
  262.   # background for prompt / input line
  263.   sb_prompt_bg = "%n";
  264.  
  265.   # background for info statusbar
  266.   sb_info_bg = "%8";
  267.  
  268.   # background for topicbar (same default)
  269.   sb_topic_bg = "%0";
  270.  
  271.   #sb_background = "%0";
  272.   #sb_topic_bg = "%0%w";
  273.   #sb_info_bg = "%4%W";
  274.  
  275.   # text at the beginning of statusbars. sb-item already puts
  276.   # space there,so we don't use anything by default.
  277.   sbstart = "";
  278.   # text at the end of statusbars. Use space so that it's never
  279.   # used for anything.
  280.   sbend = " ";
  281.  
  282.   topicsbstart = "{sbstart}";
  283.   topicsbend = "";
  284.  
  285.   prompt = "%g[%n$*%g]%n ";
  286.  
  287.   sb = " %g(%n$*%g)%n";
  288.   sbmode = "[%g+%n$*]";
  289.   sbaway = "[%9away%n]";
  290.   sbservertag = ":$0";
  291.  
  292.   # activity in statusbar
  293.  
  294.   # ',' separator
  295.   sb_act_sep = "%g$*";
  296.   # normal text
  297.   sb_act_text = "%g$*";
  298.   # public message
  299.   sb_act_msg = "%W$*";
  300.   # hilight
  301.   sb_act_hilight = "%M$*";
  302.   # hilight with specified color, $0 = color, $1 = text
  303.   sb_act_hilight_color = "$0$1-%n";
  304. };
  305. formats = {
  306.   "fe-common/core" = {
  307.     join = "{channick_hilight $[-11]0}%G:%n {chanhost_hilight $1} joins {channel $2}";
  308.     part = "{channick $[-11]0}%g:%n {chanhost $1} leaves {channel $2} {reason $3}";
  309.     quit = "{channick $[-11]0}%g:%n {chanhost $1} quits {reason $[.50]2}";
  310.     kick = "{channick $[-11]0}%g:%n was kicked from {channel $1} by {nick $2} {reason $3}";
  311.     nick_changed = "{channick $[-11]0}%W:%n changes nick to {channick_hilight $1}";
  312.     own_msg = "{ownmsgnick $2 {ownnick $[-10]0}}$1";
  313.     own_msg_channel = "{ownmsgnick $3 {ownnick $[-10]0}{msgchannel $1}}$2";
  314.     pubmsg_me = "{pubmsgmenick $2 {menick $[-10]0}}$1";
  315.     pubmsg_me_channel = "{pubmsgmenick $3 {menick $[-10]0}{msgchannel $1}}$2";
  316.     pubmsg_hilight = "{pubmsghinick $0 $3 $[-10]1}$2";
  317.     pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[-10]1{msgchannel $2}}$3";
  318.     pubmsg = "{pubmsgnick $2 {pubnick $[-10]0}}$1";
  319.     pubmsg_channel = "{pubmsgnick $3 {pubnick $[-10]0}{msgchannel $1}}$2";
  320.     own_msg_private = "{ownprivmsg msg $0}$1";
  321.     own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-10]2}}$1";
  322.     msg_private_query = "{privmsgnick $[-10]0}$2";
  323.     msg_private = "{privmsg $0 $1}$2";
  324.   };
  325. };

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at