Irssi

From Redbrick Wiki
Jump to navigation Jump to search

In the chat tutorial we went through all the basics of using chat on Redbrick. This tutorial goes through some of the more advanced features specific to the default chat client irssi.

Moving windows

When you start chat you'll have two windows, #lobby and the status window, but of course you're going to want to open more windows. The more windows you have open the harder it is to keep track of them so most people like to keep their different channels & private messages in the same place all the time.

Windows can be moved either left/right by typing

/window move left
/window move right

Or, you can move a window straight to a certain number. For example, if you join the #gamessoc channel and want it in window 3 next to #lobby you can use the command

/window move 3


Irssi Scripts

Scripts allow you to add functionality to irssi that wasnt originally part of the program, like extensions in firefox. Some members have scripts that allow you to set yourself to set yourself away automatically after you have been idle for a set period of time, and others to list the current windows you have open.

So, undone has given you a cool autoaway script, but how do you use it. The first thing you have to do is move it to the proper scripts directory which is ~/.irssi/scripts. You can do this using winscp. Once you've done that you need to load it, just type

 /load script <script-name>

from irssi to start it. If you want to search for your own cool scripts there's loads at the irssi homepage


Irssi Themes

Just as scripts can add functionality to irssi themes can be added that change the look of it. Adding themes is just like addming scripts, just copy them into the ~/.irssi folder. To use your new theme type

/set theme <theme-name>

There are lots of themes on the irssi homepage, some better than others. The themes are written in plain text, so if you find a well written example they're pretty easy to change around slightly.

Configuration Options

Irssi comes with loads of options, so i've just included the ones I think are useful

/set window_history off

Irssi remembers the last few lines of text you've typed into it, just press up to view them. With this you have a seprate buffer of commands for each window, so you cant accidentally send the last line of a private message into #lobby for all to read

/set autolog on
/set autolog_path ~/irclogs/$tag/$0.log

This turns on irssi logging, and setting the paths like this with the variables means that the irssi will save all the logs for a certain channel/pm in a different file each day.

/set autoclose_query 86400

This sets a time in seconds after which idle windows will be closed automatically, so your private message windows will be closed if you don't use them for a whole day (86400 seconds)

/set show_quit_once on

Say you and undone are in three of the same channels, with this set on if he quits for the night his quit message will only appear to you in one of your open windows, not all of them.

/set quit_message <my personal quit message>

Change the default quit message to your own personal one.

/last receive 10

Say i've just come back from a lecture, and i want to see was anyone talking about me while i was gone this shows me the last 10 lines in the current channel that contain my username.

/set real_name Andrew

This sets my real name to Andrew, so people know who i am if they use the /whois command on me.

Saving Your Config

When you type chat at your prompt this loads irssi with all the default Redbrick settings. This is useful, because if you've broken something with your changes you can just restart and irssi will be just as it was before, but you'll want to save your personal configuration so you don't have to set up irssi the way you like it everytime you start.

To save all the current options and theme to a file type

/save my-irssi.conf

To use this configuration rather than the default to start chat type

receive@murphy (~) % irssi --CONFIG=my-irssi.conf


Further Configuration

This tutorial was just to get you started on some of the things you can do with irssi, for more have a look at the irssi documentation.

To give you an idea of what you can do, here's a screenshot of how i have irssi set up. Happy Configuring!

File:Irssi custom.gif


If you need any more help with irssi, please feel free to hey a helpdesk member or mail at helpdesk@redbrick.dcu.ie