Expand description
Display and toggle the state of notifications daemon
Left-clicking on this block will enable/disable notifications.
§Configuration
| Key | Values | Default |
|---|---|---|
driver | Which notifications daemon is running. Available drivers are: "dunst" and "swaync" | "dunst" |
format | A string to customise the output of this block. See below for available placeholders. | " $icon " |
| Placeholder | Value | Type | Unit |
|---|---|---|---|
icon | Icon based on notification’s state | Icon | - |
notification_count1 | The number of notification (omitted if 0) | Number | - |
paused | Present only if notifications are disabled | Flag | - |
| Action | Default button |
|---|---|
toggle_paused | Left |
show | - |
§Examples
How to use paused flag
[[block]]
block = "notify"
format = " $icon {$paused{Off}|On} "How to use notification_count
[[block]]
block = "notify"
format = " $icon {($notification_count.eng(w:1)) |}"How to remap actions
[[block]]
block = "notify"
driver = "swaync"
[[block.click]]
button = "left"
action = "show"
[[block.click]]
button = "right"
action = "toggle_paused"§Icons Used
bellbell-slash
when using
notification_countwith thedunstdriver use dunst > 1.9.0 ↩