summaryrefslogtreecommitdiff
path: root/.config/polybar/dunst.ini
blob: 202eba0f68b249b27e28fdc7368f8dc986a7eb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[module/dunst]
type = custom/ipc
initial = 1

format = <output>
format-underline = ${colors.purple}

# For a single button to toggle use the %{An} tag on the hook variable
# where the command would be that of click-x.
hook-0 = echo "%{F$(xresource color2)}%{F-}"
hook-1 = echo "%{F$(xresource color1)}%{F-}"

click-left = notify-send "DUNST_COMMAND_RESUME" && polybar-msg -p %pid% hook dunst 1
click-right = notify-send "DUNST_COMMAND_PAUSE" && polybar-msg -p %pid% hook dunst 2