From 8b2ed7c292cbcf85ff7728d14b30d23c6c7a6dfe Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 20 Feb 2010 18:12:35 +0100 Subject: irssi: added actual config file removed examples --- irssi/config | 237 ++++++++++++----------------------------------------------- 1 file changed, 49 insertions(+), 188 deletions(-) (limited to 'irssi') diff --git a/irssi/config b/irssi/config index ac07739..0c77511 100644 --- a/irssi/config +++ b/irssi/config @@ -1,162 +1,57 @@ ### -# irssi configuration file, using irssi 0.8.14 -# - anrxc.sysphere.org -# -############################################### - -# Contains examples for: -# - Using bouncers -# - Using SSL -# - Using SILC -# - Autojoin channels -# - Completition/auto. replacement -# - Managing aliases with special variables -# - Persistant windows and channels -# - Using Irssi proxy -# -# + Exaplanations for settings section -# - http://irssi.org/documentation/settings +# irssi configuration file, using irssi proxy 0.8.14 +# * Adrian C. # -# + Scripts that I recommend and use: -# - namesaway.pl quitmsg.pl usercount.pl -# - hilightwin.pl screen_away.pl crapbuster.pl -# - adv_windowlist.pl nm.pl trackbar.pl - -servers = ( - { # Standard connection - address = "irc.freenode.net"; - chatnet = "fnode"; - port = "6667"; - autoconnect = "yes"; - }, - - { # Standard connection - address = "irc.oftc.net"; - chatnet = "oftc"; - port = "6667"; - autoconnect = "no"; - }, +#################################################### +# Scripts: +# * namesaway.pl quitmsg.pl usercount.pl +# * hilightwin.pl screen_away.pl crapbuster.pl +# * adv_windowlist.pl nm.pl trackbar.pl - { # SSL connection - address = "irc.sysphere.org"; - chatnet = "sys"; - port = "6697"; - use_ssl = "yes"; - # Automatic login - password = "xxxxxx"; - autoconnect = "yes"; - }, - { # IRC bouncer connection - address = "polarhome.com"; - chatnet = "bnc"; - port = "14444"; - # Automatic login - password = "xxxxxx"; - use_ssl = "yes"; - ssl_verify = "no"; - autoconnect = "no"; - }, - - { # SILC connection - address = "silc.silcnet.org"; - chatnet = "silc"; - port = "706"; - }, +servers = ( + { address = "irc.freenode.net"; chatnet = "fnode"; port = "6667"; autoconnect = "yes"; }, + { address = "irc.oftc.net"; chatnet = "oftc"; port = "6667"; autoconnect = "yes"; }, ); chatnets = { - fnode = { - type = "IRC"; - # Automatic login to nickserv - autosendcmd = "/msg nickserv identify xxxxxx"; - max_kicks = "4"; - max_modes = "3"; - max_msgs = "5"; - max_whois = "4"; - }; - - oftc= { - type = "IRC"; - # Automatic login to nickserv - autosendcmd = "/msg nickserv identify xxxxxx"; - max_kicks = "1"; - max_msgs = "3"; - max_whois = "30"; - }; - - sys = { - type = "IRC"; - # Automatic login as an IRC operator - autosendcmd = "/oper nickname xxxxxx"; - }; - - bnc = { type = "IRC"; }; - silc = { type = "SILC"; }; + fnode = { type = "IRC"; autosendcmd = "/msg nickserv identify xxx"; max_msgs = "3"; }; + oftc = { type = "IRC"; autosendcmd = "/msg nickserv identify xxx"; max_msgs = "3"; }; }; channels = ( - { name = "#sysphere"; chatnet = "sys"; autojoin = "Yes"; }, - { name = "##slackware"; chatnet = "fnode"; autojoin = "Yes"; }, - { name = "#archlinux"; chatnet = "fnode"; autojoin = "Yes"; }, - { name = "#razmjenavjestina"; chatnet = "fnode"; autojoin = "Yes"; }, - { name = "#awesome"; chatnet = "oftc"; autojoin = "Yes"; }, - { name = "#ecryptfs"; chatnet = "oftc"; autojoin = "Yes"; }, - { name = "silc"; chatnet = "silc"; autojoin = "No"; } + { name = "#awesome"; chatnet = "oftc"; autojoin = "yes"; }, + { name = "#ecryptfs"; chatnet = "oftc"; autojoin = "yes"; }, + { name = "#archlinux"; chatnet = "fnode"; autojoin = "yes"; }, + { name = "#tor"; chatnet = "oftc"; autojoin = "yes"; }, + { name = "#security"; chatnet = "fnode"; autojoin = "yes"; }, + { name = "#linode"; chatnet = "oftc"; autojoin = "no"; } ); aliases = { j = "join"; - wjoin = "join -window"; - wquery = "query -window"; leave = "part"; exit = "quit"; date = "time"; host = "userhost"; last = "lastlog"; say = "msg *"; - wi = "whois"; - wii = "whois $0 $0"; + wi = "whois $0 $0"; ww = "whowas"; w = "who"; - n = "names"; - m = "msg"; - t = "topic"; - c = "clear"; - cl = "clear"; cls = "clear"; - k = "kick"; kb = "kickban"; - b = "ban"; ub = "unban"; - ig = "ignore"; - unig = "unignore"; sb = "scrollback"; wc = "window close"; - wn = "window new hide"; - goto = "sb goto"; - chat = "dcc chat"; - run = "script load"; - uptime = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'"; - calc = "exec - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi"; - invlist = "mode $C +I"; - q = "query"; - ec = "window close"; - em = "me"; - nixk = "nick"; - mw = "me"; - mne = "me"; wm = "window move"; - awat = "away"; gone = "away M-x work-mode"; afk = "me afk: [detached]"; awk = "me afk: Out of my mind. back in 5 minutes."; sleep = "me invokes: M-x sleep-mode"; - uc = "statusbar window add usercount"; cb = "crapbuster"; - hideset = "set activity_hide_level parts joins quits nicks modes"; - hideclear = "set -c activity_hide_level"; - ignoreall = "/ignore $C ALL -PUBLIC -ACTIONS -INVITES -MSGS -TOPICS"; + hideset = "/ignore $C JOINS PARTS QUITS NICKS MODES"; + hidecls = "/unignore $C"; slap = "me slaps $0 around with a small 25kg Unix Manual"; bslap = "me slaps $0 around a bit with a 'Get a Life' HOWTO"; rtfm = "msg $C $0: http://www.catb.org/~esr/jargon/html/R/RTFM.html"; @@ -167,42 +62,25 @@ aliases = { completions = { ":9" = { value = ":)"; auto = "yes"; }; ".)" = { value = ":)"; auto = "yes"; }; - ".-9" = { value = ":)"; auto = "yes"; }; - ":-9" = { value = ":)"; auto = "yes"; }; - ".-)" = { value = ":)"; auto = "yes"; }; ".9" = { value = ":)"; auto = "yes"; }; ":=" = { value = ":)"; auto = "yes"; }; - ":-=" = { value = ":)"; auto = "yes"; }; ";9" = { value = ";)"; auto = "yes"; }; ",)" = { value = ";)"; auto = "yes"; }; - ",-9" = { value = ";)"; auto = "yes"; }; - ";-9" = { value = ";)"; auto = "yes"; }; - ",-)" = { value = ";)"; auto = "yes"; }; ",9" = { value = ";)"; auto = "yes"; }; ";=" = { value = ";)"; auto = "yes"; }; - ";-=" = { value = ";)"; auto = "yes"; }; }; statusbar = { - # formats: - # when using {templates}, the template is shown only if it's argument isn't - # empty unless no argument is given. for example {sb} is printed always, - # but {sb $T} is printed only if $T isn't empty. - items = { - # start/end text in statusbars barstart = "{sbstart}"; barend = "{sbend}"; topicbarstart = "{topicsbstart}"; topicbarend = "{topicsbend}"; - # treated "normally", you could change the time/user name to whatever time = "{sb $Z}"; user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}"; - # treated specially .. window is printed with non-empty windows, - # window_empty is printed with empty windows window = "{sb $winref:$itemname{sbmode $M}}"; window_empty = "{sb $winref{sbservertag $tag}}"; prompt = "{prompt $[.15]itemname}"; @@ -210,31 +88,20 @@ statusbar = { topic = " $topic"; topic_empty = " Irssi"; - # all of these treated specially, they're only displayed when needed lag = "{sb Lag: $0-}"; act = "{sb Act: $0-}"; - more = "-- more --"; + more = ":: more ::"; }; - # there's two type of statusbars. root statusbars are either at the top - # of the screen or at the bottom of the screen. window statusbars are at - # the top/bottom of each split window in screen. default = { - # the "default statusbar" to be displayed at the bottom of the window. - # contains all the normal items. window = { disabled = "no"; - # window, root type = "window"; - # top, bottom - placement = "bottom"; - # number + placement = "top"; position = "1"; - # active, inactive, always visible = "active"; - # list of items in statusbar in the display order items = { barstart = { priority = "100"; }; #time = { }; @@ -248,8 +115,8 @@ statusbar = { }; }; - # statusbar to use in inactive split windows window_inact = { + disabled = "yes"; type = "window"; placement = "bottom"; position = "1"; @@ -263,23 +130,18 @@ statusbar = { }; }; - # we treat input line as yet another statusbar :) It's possible to - # add other items before or after the input line item. prompt = { type = "root"; placement = "bottom"; - # we want to be at the bottom always position = "100"; visible = "always"; items = { prompt = { priority = "-1"; }; prompt_empty = { priority = "-1"; }; - # treated specially, this is the real input line. input = { priority = "10"; }; }; }; - # topicbar topic = { type = "root"; placement = "top"; @@ -314,7 +176,7 @@ settings = { }; "fe-common/core" = { - theme = "anrxc"; + theme = "awesome"; timestamps = "yes"; autocreate_own_query = "no"; autocreate_query_level = "DCCMSGS"; @@ -329,11 +191,11 @@ settings = { show_own_nickchange_once = "on"; bell_beeps = "yes"; beep_msg_level = "MSGS NOTICES INVITES DCC DCCMSGS HILIGHT"; - #not working, why? + # Not working, why? #recode_fallback = "cp1250"; #term_charset = "utf-8"; }; - + "irc/core" = { alternate_nick = "aic"; ctcp_version_reply = "irssi v$J ($sysname)"; @@ -342,13 +204,9 @@ settings = { "fe-text" = { term_force_colors = "on"; actlist_sort = "refnum"; }; - proxy = { - irssiproxy_password = "xxxxxx"; - irssiproxy_ports = "fnode=25000 oftc=25001"; - }; - "perl/core/scripts" = { - awl_display_key = "$Q%G:%n$H$C$S"; + awl_display_key = "$Q%G:%n$H$C$S ::"; + awl_placement = "bottom"; neat_maxlength = "8"; neat_right_mode = "no"; neat_left_actions = "no"; @@ -369,11 +227,9 @@ hilights = ( logs = { }; ignores = ( - { mask = "rilix"; level = "ALL"; }, - { mask = "sysms"; level = "ALL"; }, - { mask = "rico"; level = "ALL"; } - # Also see hideclear and ignoreall aliases - { level = "JOINS PARTS QUITS"; channels = ( "#archlinux" ); } + { level = "JOINS PARTS QUITS"; channels = ( "#archlinux" ); }, + { level = "JOINS PARTS QUITS"; channels = ( "##security" ); }, + { level = "JOINS PARTS QUITS"; channels = ( "#tor" ); } ); windows = { @@ -384,7 +240,6 @@ windows = { sticky = "yes"; parent = "2"; }; - 2 = { items = ( { @@ -395,44 +250,50 @@ windows = { } ); }; - 3 = { items = ( { type = "CHANNEL"; chat_type = "IRC"; - name = "#ecryptfs"; - tag = "oftc"; + name = "#archlinux"; + tag = "fnode"; } ); }; - 4 = { items = ( { type = "CHANNEL"; chat_type = "IRC"; - name = "#archlinux"; - tag = "fnode"; + name = "#ecryptfs"; + tag = "oftc"; } ); }; - 5 = { items = ( { type = "CHANNEL"; chat_type = "IRC"; - name = "##slackware"; + name = "#tor"; + tag = "oftc"; + } + ); + }; + 6 = { + items = ( + { + type = "CHANNEL"; + chat_type = "IRC"; + name = "#security"; tag = "fnode"; } ); }; - - 6 = { name = "hilight"; sticky = "yes"; }; + 7 = { name = "hilight"; sticky = "yes"; }; }; mainwindows = { 2 = { first_line = "7"; lines = "22"; }; - 4 = { first_line = "1"; lines = "5"; }; + 7 = { first_line = "1"; lines = "5"; }; }; -- cgit v1.2.3