A WeeChat script that sends highlight and message notifications through notify-send.
notify-send
is now called with --category im.received
(#27).notify_on_all_messages_in_current_buffer
. When set to on
, you will receive a notification on all messages in the currently active buffer (#22).hide_messages_in_buffers_that_match
. It is a comma-separated list of regex patterns for names of buffers from which you want to receive notifications without messages (#19).desktop_entry
. It contains the name of the desktop entry for WeeChat. This enables notify-send
to focus WeeChat upon clicking on a notification (#14).ignore_nicks
option from ''
to '-,--,-->'
. This will prevent notifications for messages from nicks -
, --
, and -->
, which is usually just noise (#23).notify_on_all_messages_in_buffers_that_match
. It is a comma-separated list of regex patterns of buffers for which you want to receive notifications on all messages that appear in them.notify_on_messages_that_match
. It is a comma-separated list of regex patterns for which you want to receive notifications for any message whose body matches the given regular expression. Contributed by @bbugyi200 in #12.ignore_messages_tagged_with
: notify_none
(see #10).notify-send
fails. From a user's viewpoint, this is better than showing the complete backtrace (see #11).weechat-notify-send
is a script, not a plugin (see #8).plugins.var.python.notify_send.transient
configuration
option to off
.>channel
and #channel
to
be equal. The reason is that the
wee_slack plugin replaces #
with
>
to indicate that someone in the buffer is typing. This fixes the behavior
of several configuration options (e.g. notify_on_all_messages_in_buffers
)
when weechat_notify_send is
used together with wee_slack.irc_part
, irc_status
, irc_nick_back
, irc_401
,
and irc_402
.notify_on_all_messages_in_buffers
. Previously, such
notifications looked like private-message notifications, which was
misleading.notify-send
failed with the following error message: No summary specified.
notify-send
to fail.irc_privmsg
.
This should make the plugin working also for networks other than IRC (e.g.
Matrix #3).ignore_messages_tagged_with
: A comma-separated list of
message tags for which no notifications should be shown. Default:
'irc_join,irc_quit'
.notify_on_all_messages_in_buffers
. It is a
comma-separated list of buffers for which you want to receive notifications
on all messages that appear in them. You can use either short names
(#buffer
) or full names (network.#buffer
). This list is empty by default.notify_on_filtered_messages
. By turning it on
, you
can instruct the plugin to send notifications also for filtered (hidden)
messages.nick_XYZ
, where XYZ
is the nick that sent the message. If
this fails, the nick is obtained from the prefix (fallback).@
(op on IRC) and +
(voice on IRC) were removed. Now, any character from the
following list is removed from the beginning of the prefix: ~&@%+-
. The
meaning depends on the used protocol.--
.ignore_buffers
. It is a comma-separated list of buffers from which no notifications should be shown.ignore_buffers_starting_with
. It is a comma-separated list of buffer prefixes from which no notifications should be shown.iset.pl
).min_notification_delay
. It represents a minimal delay
between successive notifications from the same buffer. It is used to protect
from floods/spam. The default value is 500 milliseconds. Set it to 0 to
disable this feature (i.e. all notifications will be shown).notify_on_highlights
. It allows you to disable
notifications on highlights. By default, notifications on highlights are
enabled.notify_on_privmsgs
. It allows you to disable
notifications on private messages. By default, notifications on private
messages are enabled.@
when the user was an op. Modes are now
removed and not shown in the notifications.