Advertisement
Guest User

irssi-config

a guest
Aug 7th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 5.43 KB | None | 0 0
  1. # vim: ft=perl
  2. servers = (
  3.   {
  4.     # Open and Free Technology Community
  5.     address = "irc.oftc.net";
  6.     chatnet = "OFTC";
  7.     autoconnect = "no";
  8.   },
  9.   (... more servers ...)
  10. );
  11.  
  12. chatnets = {
  13.   freenode = {
  14.     type = "IRC";
  15.     autosendcmd = "/msg nickserv identify XXXXXXX XXXXXXXX; wait 3000";
  16.   };
  17.   (... more chatnets ...)
  18. };
  19.  
  20. channels = (
  21.   { name = "#freenode"; chatnet = "freenode"; autojoin = "no"; },
  22.   { name = "#hardware"; chatnet = "freenode"; autojoin = "no"; },
  23.   (... more channels ...)
  24. );
  25.  
  26. aliases = {
  27.   (... aliases ...)
  28. };
  29.  
  30. statusbar = {
  31.   items = {
  32.     # start/end text in statusbars
  33.     barstart = "{sbstart}";
  34.     barend = "{sbend}";
  35.  
  36.     topicbarstart = "{topicsbstart}";
  37.     topicbarend = "{topicsbend}";
  38.  
  39.     # treated "normally", you could change the time/user name to whatever
  40.     time = "{sb $Z}";
  41.     user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
  42.  
  43.     # treated specially .. window is printed with non-empty windows,
  44.     # window_empty is printed with empty windows
  45.     window = "{sb $winref:$tag/$itemname{sbmode $M}}";
  46.     window_empty = "{sb $winref{sbservertag $tag}}";
  47.     prompt = "{prompt $[.15]itemname}";
  48.     prompt_empty = "{prompt $winname}";
  49.     topic = " $topic";
  50.     topic_empty = " Irssi v$J - http://www.irssi.org";
  51.  
  52.     # all of these treated specially, they're only displayed when needed
  53.     lag = "{sb Lag: $0-}";
  54.     act = "{sb Act: $0-}";
  55.     more = "-- more --";
  56.   };
  57.  
  58.   # there's two type of statusbars. root statusbars are either at the top
  59.   # of the screen or at the bottom of the screen. window statusbars are at
  60.   # the top/bottom of each split window in screen.
  61.   default = {
  62.     # the "default statusbar" to be displayed at the bottom of the window.
  63.     # contains all the normal items.
  64.     window = {
  65.       disabled = "no";
  66.  
  67.       # window, root
  68.       type = "window";
  69.       # top, bottom
  70.       placement = "bottom";
  71.       # number
  72.       position = "1";
  73.       # active, inactive, always
  74.       visible = "active";
  75.  
  76.       # list of items in statusbar in the display order
  77.       items = {
  78.         barstart = { priority = "100"; };
  79.         time = { };
  80.         user = { };
  81.         window = { };
  82.         window_empty = { };
  83.         lag = { priority = "-1"; };
  84.         more = { priority = "-1"; alignment = "right"; };
  85.         barend = { priority = "100"; alignment = "right"; };
  86.         usercount = { };
  87.       };
  88.     };
  89.  
  90.     # statusbar to use in inactive split windows
  91.     window_inact = {
  92.       type = "window";
  93.       placement = "bottom";
  94.       position = "1";
  95.       visible = "inactive";
  96.       items = {
  97.         barstart = { priority = "100"; };
  98.         window = { };
  99.         window_empty = { };
  100.         more = { priority = "-1"; alignment = "right"; };
  101.         barend = { priority = "100"; alignment = "right"; };
  102.       };
  103.     };
  104.  
  105.     # we treat input line as yet another statusbar :) It's possible to
  106.     # add other items before or after the input line item.
  107.     prompt = {
  108.       type = "root";
  109.       placement = "bottom";
  110.       # we want to be at the bottom always
  111.       position = "100";
  112.       visible = "always";
  113.       items = {
  114.         prompt = { priority = "-1"; };
  115.         prompt_empty = { priority = "-1"; };
  116.         # treated specially, this is the real input line.
  117.         input = { priority = "10"; };
  118.       };
  119.     };
  120.  
  121.     # topicbar
  122.     topic = {
  123.       type = "root";
  124.       placement = "top";
  125.       position = "1";
  126.       visible = "always";
  127.       items = {
  128.         topicbarstart = { priority = "100"; };
  129.         topic = { };
  130.         topic_empty = { };
  131.         topicbarend = { priority = "100"; alignment = "right"; };
  132.       };
  133.     };
  134.   };
  135. };
  136.  
  137. settings = {
  138.   core = {
  139.     real_name = "XXXXXXX";
  140.     user_name = "XXXXXXX";
  141.     nick = "XXXXXXXX";
  142.     timestamp_format = "%H:%M:%S";
  143.     recode_autodetect_utf8 = "yes";
  144.     recode_out_default_charset = "ISO-8859-15";
  145.     recode = "yes";
  146.     quit_message = "";
  147.     settings_autosave = "no";
  148.   };
  149.  
  150.   "irc/core" = {
  151.     alternate_nick = "XXXXXXXXX";
  152.     part_message = "";
  153.     ctcp_version_reply = "irssi v$J";
  154.     skip_motd = "yes";
  155.   };
  156.   #  "fe-text" = { actlist_sort = "refnum"; };
  157.   #  "perl/core/scripts" = { joinplus_server_maps = "#debian OFTC"; };
  158.   #  "fe-common/core" = { term_charset = "UTF-8"; };
  159.   ##  "fe-common/core" = {
  160.   ##    use_status_window         = "yes";
  161.   ##    theme                     = "ftheme";
  162.   ##    autolog                   = "yes";
  163.   ##    autolog_path              = "~/.irclogs/$tag/${0}/${0}-%Y-%m-%d";
  164.   ##    autolog_level             = "MSGS";
  165.   ##    autoclose_windows         = "yes";
  166.   ##    reuse_unused_windows      = "yes";
  167.   ##    print_active_channel      = "no";
  168.   ##    use_msgs_window           = "yes";
  169.   ##    windows_auto_renumber     = "no";
  170.   ##    show_nickmode_empty       = "yes";
  171.   ##    show_names_on_join        = "no";
  172.   ##    autocreate_query_level    = "NONE";
  173.   ##    show_nickmode             = "yes";
  174.   ##    hilight_nick_matches      = "yes";
  175.   ##    window_history            = "yes";
  176.   ##  };
  177.   "fe-text" = { actlist_sort = "refnum"; scroll_page_count = "/1"; };
  178.   "fe-common/core" = {
  179.     beep_when_window_active = "yes";
  180.     beep_when_away = "yes";
  181.     beep_msg_level = "MSGS NOTICES DCC DCCMSGS HILIGHT";
  182.     bell_beeps = "yes";
  183.   };
  184. };
  185. #keyboard = ( { key = "meta2-P"; id = "key"; data = "F1"; } );
  186.  
  187. ignores = ( { level = "JOINS PARTS QUITS MODES"; } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement