3

Initial Problem:

Installed a fresh copy of irssi for my terminal. All settings are default. My goal is when someone pings my username, I am alerted through a sound notification.

Initial Settings:

I went to terminal's profile preferences and checked:

terminal bell = true

I also tried a few settings within irssi:

/set beep_when_window_active ON"
/set beep_when_away ON"
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT"
/set bell_beeps ON" 

After all settings, sound notification does not occur upon ping. What other settings am I missing?

4

By default, irssi looks to the computer speaker to produce sound. By default, pcspkr is not loaded in many linux distros --including, Ubuntu 13.10.

Initial Solution:

cd $HOME/.irssi/scripts # make a scripts directory if one does not already exist
wget http://scripts.irssi.org/scripts/beep_beep.pl
cp $HOME/Music/custom_beep_example.wav . # wget or cp a custom notification sound
mkdir $HOME/.irssi/scripts/autorun
cd $HOME/.irssi/scripts/autorun
ln -s ../beep_beep.pl #create symbolic link for auto-run

After running through these commands, launch up irssi in your terminal and run the following commands:

/set bell_beeps
/set beep_msg_level MSGS DCC DCCMSGS HILIGHT NOTICES
/set beep_cmd aplay -q ~/.irssi/scripts/custom_beep_example.wav
/save

That's it! You should be ready to rock-in-roll!

Options:

You can append your beep_message_level with ALL for all Levels:

/set beep_msg_level MSGS DCC DCCMSGS HILIGHT NOTICES ALL

Another option is to change the beep_flood in the perl script to 300000 (5 minutes). If you get a message on IRC within the flood time, it will not beep, otherwise, it will.

Credits go to andrew.46 and suicidefunky from ubuntu forums for finding the initial and optional solution.

  • Good to see that little bit of work is still useful :). I still use this on my own system.... – andrew.46 Jun 7 '14 at 7:12
  • @andrew.46 You might want to upvote this answer as well? – Anwar Nov 5 '16 at 15:23
  • @Anwar Looks like I did quite some time ago :) – andrew.46 Nov 5 '16 at 18:41
  • @andrew.46 but the only vote I see is mine :) – Anwar Nov 5 '16 at 18:47
  • 1
    @Anwar No problems! This solution (that I helped create!) I have been using on irssi ever since this time :) – andrew.46 Nov 6 '16 at 2:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.