Notifications
Customize and enable notifications.
Example
[notifications]
direct_message = { sound = "peck", show_toast = true }
[notifications.highlight]
sound = "dong"
exclude = ["NickServ", "#halloy"]
Types
Following notifications are available:
| Name | Description | Content |
|---|---|---|
connected | Triggered when a server is connected | N/A |
direct_message | Triggered when a direct message is received | Message text |
disconnected | Triggered when a server disconnects | N/A |
file_transfer_request | Triggered when a file transfer request is received | File name |
highlight | Triggered when you were highlighted in a buffer | Message text |
monitored_online | Triggered when a user you're monitoring is online | N/A |
monitored_offline | Triggered when a user you're monitoring is offline | N/A |
reconnected | Triggered when a server reconnects | N/A |
Configuration
sound
Notification sound.
Supports both built-in sounds, and external sound files (mp3, ogg, flac or wav placed inside the sounds folder within the configuration directory).
# Type: string
# Values: "dong", "peck", "ring", "squeak", "whistle", "bonk", "sing" or external sound.
# Default: not set
[notifications.<notification>]
sound = "dong"
show_toast
Notification should trigger a OS toast.
# Type: boolean
# Values: true, false
# Default: false
[notifications.<notification>]
show_toast = true
show_content
Notification should show the content of the trigger (as described in the table above)).
# Type: boolean
# Values: true, false
# Default: false
[notifications.<notification>]
show_content = true
delay
Delay in milliseconds before triggering the next notification.
# Type: integer
# Values: any non-negative integer
# Default: 500
[notifications.<notification>]
delay = 250
exclude
Exclude notifications for nicks (and/or channels in highlight's case).
Only available for direct_message, highlight and file_transfer_request
notifications.
You can also exclude all nicks/channels by using a wildcard: ["*"] or ["all"].
# Type: array of strings
# Values: array of strings
# Default: []
[notifications.<direct_message|file_transfer_request>]
exclude = ["HalloyUser1"]
[notifications.highlight]
exclude = ["HalloyUser1", "#halloy"]
include
Include notifications for nicks (and/or channels in highlight's case).
Only available for direct_message, highlight and file_transfer_request
notifications.
The include rule takes priority over exclude, so you can use both together.
For example, you can exclude all nicks with ["*"] for direct_message and
then only include a few specific nicks to receive direct_message notifications
from.
# Type: array of strings
# Values: array of strings
# Default: []
[notifications.<direct_message|file_transfer_request>]
include = ["HalloyUser1"]
[notifications.highlight]
include = ["HalloyUser1", "#halloy"]