Irssi configuration

Here are my scripts and configuration

Irssi and screen

With screen, we can create a terminal which can the be detached and reattached at will. So I can connect to my computer over SSH and reattach irssi : ta~da, I have my messaging client from the outside.
We start a screen session named irssi with screen -S irssi. Then we launch irssi inside the new terminal. Now the session will be detached with Ctrl-A Ctrl-D. It will be reattached by typing screen -raAd irssi.

Irssi scripts

Installing a script is done by copying the script into .irssi/scripts and then loaded inside irssi with /script load myscript.pl.
If we want to start them automatically at boot, we create a symlink in the .irssi/scripts/autorun directory :

$ ln -s myscript.pl autorun/

The scripts are available here. I use:

  • bitlbee_join_notice.pl : tells you if a contact has reconnected in your chat windows.
  • bitlbee_status_notice.pl : more information about the change of status (how long he has been away etc.). Get it here.
  • nickcolor.pl : assing a color for each user in an IRC chat (useful for large rooms).
  • screen_away.pl : when my screen session is detached, I am marked as away and all the messages sent to me will be stored until I reattach the session.

Troubleshooting

If trying to load a script results in Can’t locate Time/Duration.pm, then you should install the time-duration library. In Debian :

$ apt-get install libtime-duration-parse-perl