summaryrefslogtreecommitdiff
path: root/.config/polybar/dunst.ini
blob: 3186dd07b7387f81f0ae9831f8006602d0fb767b (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 = dunstctl set-paused false && polybar-msg -p %pid% hook dunst 1
click-right = dunstctl set-paused true && polybar-msg -p %pid% hook dunst 2