This is a script that sends a notification (via notify-send) about every message on a specific channel. Even having chan_hl available, it depends on a tcl interpreter, which, besides that, was complete useless to me.
Requires the notify module, available on luarocks (also see the ArchLinux' [AUR package] for a patch for more recent versions of libnotify), and, of course, libnotify. Tested in WeeChat 0.3.4+, but I think it shall work on any 0.3.0+.
The script works by reading these 3 different configs values:
- plugins.var.lua.notify_channel.channel_list : comma separated list of channels to watch (default: #weechat)
- plugins.var.lua.notify_channel.message_header : string to be used as title of the notification
- plugins.var.lua.notify_channel.message_body : string to be prepended in the body of the notification
By modifying any of those variables, the script will automatically change its behavior.