So I use weechat as my main IRC client. It’s awesome and looks lovely with solarized theme. Running on ubuntu 14.04 and using gnome-terminal there is a problem somewhere that beep.pl doesn’t work. It seems to be some problem in gnome-terminal since the terminal bell isn’t working. I’ve spent countless of hours trying to figure this out.

In the end I just thought, to hell with it. Let’s hack beep.pl.

So I looked around for sound files and found a not too long once that sounds pretty decent. /usr/share/sounds/gnome/default/alerts/glass.ogg There are several ways to play sound in the terminal, one is with the play command which uses the sox package. In the end it was define this variable: my $default_sound_cmd = "play /usr/share/sounds/gnome/default/alerts/glass.ogg >/dev/null 2>&1 &"; where you need the last part since play outputs some file info.

And then browse the code of beep.pl and find: # Channels whitelist for highlights if ($options{beep_highlight} eq "on") { #for some reason this is the spot where highlights are seen. system($default_sound_cmd); And it should work. I renamed the file and the script name and installed it with autoload. Finally I can hear people pinging me!