Irssi configuration

Home | UNIX | Oracle | Code | Practical | Private

Irssi configuration


Installation
Note. for Redhat systems, there's an RPM on EPEL (fedoraproject.org/wiki/EPEL).


Configuration
Configure servers,
cd ~/.irssi
cp config config.dist
vi config
change e.g. (pretty good settings for France),
servers = (
{
address = "ircnet.club-internet.fr";
chatnet = "ircnet";
autoconnect = "yes";
},
{
address = "kornbluth.freenode.net";
chatnet = "freenode";
autoconnect = "yes";
},
{
address = "irc.efnet.net";
chatnet = "efnet";
autoconnect = "yes";
},
{
address = "irc.dedibox.fr";
chatnet = "dedibox";
autoconnect = "yes";
}
);
Note. otherwise do that within irssi,
/network add -nick NICKNAME freenode
/server add -auto -network freenode kornbluth.freenode.net
/save

Configure specific feature on IRC networks,
chatnets = {
freenode = {
type = "IRC";
autosendcmd = "/msg nickserv identify PASSWORD; wait 2000";
};
};
Note. otherwise do that within irssi,
/network add -autosendcmd "/msg nickserv identify PASSWORD; wait 2000" freenode
/save

Configure channel autojoin,
channels = (
{ name = "#netbsd"; chatnet = "ircnet"; autojoin = "yes"; },
{ name = "#slackware"; chatnet = "ircnet"; autojoin = "yes"; },
{ name = "##sed"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#dragonflybsd"; chatnet = "efnet"; autojoin = "yes"; }
);
Note. otherwise do that within irssi e.g.,
/channel add -auto ##sed freenode
/save

Eventually deploy your prefered theme e.g. 'simpleii' here,
cd ~/.irssi
wget irssi.org/themefiles/simpleii.theme
configure general settings,
settings = {
core = {
real_name = "FIRSTNAME NAME";
user_name = "NICKNAME";
nick = "NICKNAME";
alternate_nick = "ALTNICKNAME";
};
"fe-text" = { actlist_sort = "refnum"; };
"fe-common/core" = {
completion_char = ",";
completion_nicks_lowercase = "yes";
autocreate_query_level = "MSGS DCCMSGS";
autofocus_new_items = "yes";
autolog = "yes";
autolog_level = "all -crap -clientcrap -ctcps";
theme = "simpleii";
bell_beeps = "yes";
beep_msg_level = "MSGS NOTICES DCC DCCMSGS HILIGHT";
};
};
Note. otherwise do that within irssi,
/set real_name FIRSTNAME NAME
/set user_name NICKNAME
/set nick NICKNAME
/set alternate_nick ALTNICKNAME

/set completion_char ,
/set completion_nicks_lowercase on

/set autocreate_query_level MSGS DCCMSGS
/set autofocus_new_items on

/set autolog on
/set autolog_level all -crap -clientcrap -ctcps

/set theme simpleii
/save

Force highlights,
hilights = (
{ text = "NICKNAME"; nick = "yes"; word = "yes"; },
{ text = "ALTNICKNAME"; nick = "yes"; word = "yes"; },
);
Note. otherwise do that within irssi,
/hilight
/hilight NICKNAME
/hilight ALTNICKNAME

In case you need it,
/set colors
/set colors on
/set hide_colors off
/set term_force_colors on

Make it beep when your nick is mentioned,
/set bell_beeps on
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT

Keep the defaults for those ones,
/set activity
/set activity_hilight_level MSGS DCCMSGS
/set activity_msg_level PUBLIC

/set hilight
/set hilight_act_color %Y
/set hilight_color %Y
/set hilight_level PUBLIC DCCMSGS
/set hilight_nick_matches on


Usage
Connect,
/connect irc_server_or_network_name

Clean up failed connections,
/rmreconns

Close dead windows,
/window close

Note. if you change the config file manually while irssi is already running, reload,
/reload

Misc
Note. default port is 6667. Alternate is 6668.

Note. the auth service may be requested by some IRC servers. Either start the identd daemon or return-rst the 113 port (tcp or udp). The latter also fixes the connect lag on some IRC servers.

Note. to keep your IRC session alive, use screen (pbraun.nethence.com/doc/misc/screen.html) or detach (inglorion.net/software/detach/). In case you need to close the screen session, just :
- reduce the number of screen windows to this one
- detach it
- relogin as needed
- start a new screen session
- attach the older screen session into the appropriate window

Note. prefered pastebin : paste-bin.com/


References
irssi.org/documentation/startup
irssi.org/documentation/settings
irssi.org/documentation/formats
quadpoint.org/articles/irssi#utf-8_in_irssi_and_screen
selcouth.com/irssi.php


Home | UNIX | Oracle | Code | Practical | Private | Donate | Print | html/css
© 2010 Pierre-Philipp Braun