(defwidget notification_controls [] (box :orientation "h" (eventbox :onclick "dunstctl set-paused toggle && ${bell_toggle ? "${update_bell_toggle}false" : "${update_bell_toggle}true"}" (image :image-width 32 :path {bell_toggle ? muted_icon : normal_icon})) (button :onclick "dunstctl history-clear" "Clear") )) (defvar bell_toggle false) (defvar update_bell_toggle "eww update bell_toggle=") (defvar muted_icon "widgets/notification-draw/notification-controls/muted-icon.png") (defvar normal_icon "widgets/notification-draw/notification-controls/normal-icon.png")