Notifications
Notifications
Customize and enable notifications.
[notifications]
direct_message = { sound = "peck", show_toast = true }
[notifications.highlight]
sound = "dong"
exclude = { users = ["NickServ"], channels = ["#woggle"] }Types
Following notifications are available:
| Name | Description | Content |
|---|---|---|
channel |
Triggered when a message is received in a channel | Message text |
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 highlighted in a buffer or replied to | 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 |
reaction |
Triggered when another user reacts to your message | Message text |
Note
channel is an array of tables, with each entry a notification for a single
channel. For example, the following shows a toast notification for every
message in #woggle:
[notifications.channel."#woggle"]
show_toast = true
# these two options will restrict the notifications to a server named "Libera"
exclude = "*"
include = { servers = ["Libera"] }Built-in Sounds
The following table shows all available built-in sounds
| Sound Name | Preview |
|---|---|
bloop |
bloop.ogg |
bonk |
bonk.ogg |
dong |
dong.ogg |
drop |
drop.ogg |
peck |
peck.ogg |
ring |
ring.ogg |
sing |
sing.ogg |
squeak |
squeak.ogg |
tweep |
tweep.ogg |
whistle |
whistle.ogg |
zone |
zone.ogg |
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).
When multiple sounds are specified, Woggle will randomly select one each time the notification is triggered.
# Type: string or array of strings
# Values: `"<string>"`, `["<string>", "<string>"]` see above for built-in sounds, eg: "zone" or external sound.
# Default: not set
[notifications.<notification>]
sound = ["zone", "peck"]show_toast
Notification should trigger a OS toast.
# Type: boolean
# Values: true, false
# Default: false
[notifications.<notification>]
show_toast = truerequest_attention
Notification should request user attention for its window (aka urgency). Exact behavior is platform specific:
- macOS: Bounces the dock icon once.
- Windows: Flashes the taskbar button until the application is in focus.
- Linux: Depends on the desktop environment.
# Type: boolean
# Values: true, false
# Default: false
[notifications.<notification>]
request_attention = trueshow_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 = truedelay
Delay in milliseconds before triggering the next notification.
# Type: integer
# Values: any non-negative integer
# Default: 500
[notifications.<notification>]
delay = 250exclude
Exclusion conditions in which you won't be
notified. Inclusion conditions will take precedence over exclusion conditions.
You can also exclude all conditions by setting to "all" or "*".
Only available for channel, direct_message, file_transfer_request, and
highlight notifications.
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[notifications.<direct_message|file_transfer_request>]
exclude = { users = ["WoggleUser1"] }
[notifications.highlight]
exclude = { users = ["WoggleUser1", "#woggle"] }include
Inclusion conditions in which you will be
notified. Notifications are enabled in all conditions unless explicitly
excluded, so this setting is only relevant when combined with the exclude
setting.
Only available for channel, direct_message, file_transfer_request, and
highlight notifications.
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[notifications.<direct_message|file_transfer_request>]
include = { users = ["WoggleUser1"] }
[notifications.highlight]
include = { users = ["WoggleUser1", "#woggle"] }