Skip to content

Notifications

Displays information about the current SwayNC state such as notification count and DnD. Clicking the widget opens the SwayNC panel.

Notifications widget in its closed state showing 2 notifications

Example

{
end = [
{
type = "notifications"
show_count = true
icons.closed_none = "󰍥"
icons.closed_some = "󱥂"
icons.closed_dnd = "󱅯"
icons.open_none = "󰍡"
icons.open_some = "󱥁"
icons.open_dnd = "󱅮"
}
]
}

Configuration

Type: notifications

SwayNC state icons.

See icons.

Default: None

Object keys

Icon to show when the panel is closed, with DnD enabled. Takes higher priority than count-based icons.

Type: string
Default: 󱅯

Icon to show when the panel is closed, with no notifications.

Type: string
Default: 󰍥

Icon to show when the panel is closed, with notifications.

Type: string
Default: 󱥂

Icon to show when the panel is open, with DnD enabled. Takes higher priority than count-based icons.

Type: string
Default: 󱅮

Icon to show when the panel is open, with no notifications.

Type: string
Default: 󰍡

Icon to show when the panel is open, with notifications.

Type: string
Default: 󱥁

Whether to show the current notification count.

Type: boolean
Default: true

Styling

SelectorDescription
.notificationsNotifications widget container
.notifications .buttonNotifications widget button
.notifications .countNotifications count indicator overlay

For more information on styling, please see the styling guide.