Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Notifications

Customize and enable notifications.

Example

[notifications]
direct_message = { sound = "peck", show_toast = true }

[notifications.highlight]
sound = "dong"
exclude = { users = ["NickServ"], channels = ["#halloy"] }

Types

Following notifications are available:

NameDescriptionContent
channelTriggered when a message is received in a channelMessage text
connectedTriggered when a server is connectedN/A
direct_messageTriggered when a direct message is receivedMessage text
disconnectedTriggered when a server disconnectsN/A
file_transfer_requestTriggered when a file transfer request is receivedFile name
highlightTriggered when you were highlighted in a bufferMessage text
monitored_onlineTriggered when a user you’re monitoring is onlineN/A
monitored_offlineTriggered when a user you’re monitoring is offlineN/A
reconnectedTriggered when a server reconnectsN/A

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 #halloy:

[notifications.channel."#halloy"]
show_toast = true

Built-in Sounds

The following table shows all available built-in sounds

Sound NamePreview
bloop
bonk
dong
drop
peck
ring
sing
squeak
tweep
whistle
zone

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: see above for built-in sounds, eg: "zone" or external sound.
# Default: not set

[notifications.<notification>]
sound = "zone"

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

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 = ["HalloyUser1"] }

[notifications.highlight]
exclude = { users = ["HalloyUser1", "#halloy"] }

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 = ["HalloyUser1"] }

[notifications.highlight]
include = { users = ["HalloyUser1", "#halloy"] }