Sound on highlight weechat when doesnt work

Posted by: on Aug 10, 2014 | 2 Comments

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 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
So I looked around for sound files and found a not too long once that sounds pretty decent.
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 and find:

# Channels whitelist for highlights
if ($options{beep_highlight} eq "on")
#for some reason this is the spot where highlights are seen.

And it should work. I renamed the file and the script name and installed it with autoload. Finally I can hear people pinging me!


  1. Eli
    November 10, 2015

    hi , I use your solution, it works, thanks for putting it here, easy my life.

  2. Miguel
    November 11, 2015


    Very useful. Thanks. This is the sound I play:

    my $default_sound_cmd = “play -n synth 0.1 sine 800 vol 0.5 >/dev/null 2>&1″;


Leave a Reply

%d bloggers like this: