WeeChat Melody

Today, I played with the excellent launcher.pl script by FlashCode. This script allows you to launch a command when a signal is caught. For example, you can play a sound when you receive an highlight, receive a query, and so on. The number of signals is awesome. Click here to view the list of available signals. I decided to create a melody. I had assigned a different sound to the following signals :

  • irc_channel_opened
  • irc_pv_opened
  • irc_pv
  • irc_server_connecting
  • window_opened
  • weechat_highlight

So let’s go. First, I have installed launcher.pl :

/script install launcher.pl

Then, I have assigned a sound to these 6 signals :

/launcher irc_channel_opened aplay -q /usr/lib/libreoffice/share/gallery/sounds/apert.wav
/launcher irc_pv_opened aplay -q /usr/lib/libreoffice/share/gallery/sounds/top.wav
/launcher irc_pv aplay -q /usr/lib/libreoffice/share/gallery/sounds/apert2.wav
/launcher irc_server_connecting aplay -q /usr/lib/libreoffice/share/gallery/sounds/train.wav
/launcher window_opened aplay -q /usr/lib/libreoffice/share/gallery/sounds/sparcle.wav
/launcher weechat_highlight aplay -q /usr/lib/libreoffice/share/gallery/sounds/train.wav

and then I launched WeeChat and heard a very nice song!

Here’s the video :

Enjoy!

Leave a Reply