Irssi tips

From awesome
Jump to: navigation, search

Using IRSSI with Awesome

Urgent Signals[edit]

You can have the awesome window manager identify if somebody sent you a message on IRC using the urgency settings, by doing the following:

In irssi:

/set bell_beeps ON
/set beep_msg_level MSGS NOTICES INVITES DCC DCCMSGS HILIGHT

Permanent irssi configuration:

# settings
#   fe-common/core
bell_beeps = "yes";
beep_msg_level = "MSGS NOTICES INVITES DCC DCCMSGS HILIGHT";


In .Xdefaults for terminal emulators:

! rxvt-unicode
URxvt.urgentOnBell:  true

! xterm
XTerm*bellIsUrgent:  true


In GNU screen: Make sure audible bell is enabled (C-a C-g to check). Permanent setting for .screenrc:

vbell off  # no visual bell


Notifications[edit]

The following irssi script uses libnotify (via the `notify-send` command) to alert user of highlighted messages. On Debian, and Ubuntu you need to install the `libnotify-bin` package.

Libnotify Script for Irssi.


Genjix's scripts[edit]

Here's my setup for anyone interested.

Channel List:

$ cd ~/.irssi/scripts/autorun
$ wget http://anti.teamidiot.de/static/nei/*/Code/Irssi/adv_windowlist.pl

Hide statusbar:

$ /statusbar window disable
$ /save

Install irssi-scripts, and do:

$ cd .irssi/scripts/autorun/
# colourised nicknames
$ ln -s /usr/share/irssi/scripts/nickcolor.pl .
# mouse scrollwheel support
$ ln -s /usr/share/irssi/scripts/mouse.pl .

Add this to .irssi config to ignore nickserv window:

autosendcmd = "/msg nickserv identify blaablaa; /window goto nickserv; /wc";

To run irssi, I do:

$ screen -mdS i irssi

Then whenever I wish to check irc, I can run screen -r and type C-a d to detach from the session. Closing the terminal without exiting is fine. screen is a handy utility where you can make seperate sessions to log into, each with their own windows. So here we make 1 session called irssi, with 1 window that has irssi loaded.

Show running sessions with screen -ls