Module i3status_rs::blocks::notify

source ·
Expand description

Display and toggle the state of notifications daemon

Left-clicking on this block will enable/disable notifications.

§Configuration

KeyValuesDefault
driverWhich notifications daemon is running. Available drivers are: "dunst" and "swaync""dunst"
formatA string to customise the output of this block. See below for available placeholders." $icon "
PlaceholderValueTypeUnit
iconIcon based on notification’s stateIcon-
notification_count1The number of notification (omitted if 0)Number-
pausedPresent only if notifications are disabledFlag-
ActionDefault button
toggle_pausedLeft
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

  • bell
  • bell-slash

  1. when using notification_count with the dunst driver use dunst > 1.9.0 

Structs§

Enums§

Functions§