Murzchnvok / polybar-collection

Beautiful collection of Polybar themes
824 stars 47 forks source link

modules : dnd DUNST_COMMAND deprecated #18

Closed yuceltoluyag closed 1 year ago

yuceltoluyag commented 1 year ago

https://github.com/dunst-project/dunst/pull/830

Drop in replacements for the removed commands:

notify-send DUNST_COMMAND_PAUSE -> dunstctl set-paused true notify-send DUNST_COMMAND_RESUME -> dunstctl set-paused false notify-send DUNST_COMMAND_TOGGLE -> dunstctl set-paused toggle

[module/dnd]
type = custom/ipc
initial = 1

hook-0 = echo "%{A1:notify-send 'DUNST_COMMAND_PAUSE' && polybar-msg hook dnd 2:}%{T7}%{T-}%{A}" &
hook-1 = echo "%{A1:notify-send 'DUNST_COMMAND_RESUME' && polybar-msg hook dnd 1:}%{T7}%{T-}%{A}" &

format-foreground = ${colors.fg}
format-padding = 1
Murzchnvok commented 1 year ago

Thank you!