summaryrefslogtreecommitdiff
path: root/.config/polybar/dunst.ini
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/dunst.ini')
-rw-r--r--.config/polybar/dunst.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/polybar/dunst.ini b/.config/polybar/dunst.ini
new file mode 100644
index 0000000..202eba0
--- /dev/null
+++ b/.config/polybar/dunst.ini
@@ -0,0 +1,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