eww: add floating media popup on bar media click

This commit is contained in:
retrozinndev
2024-12-20 15:46:04 -03:00
parent b0d61250e8
commit 5bc04e4dff
13 changed files with 224 additions and 163 deletions
+7 -3
View File
@@ -1,6 +1,10 @@
(defwidget cc-toggle []
(button :onclick "sh scripts/eww-window.sh toggle control-center"
:class "control-center-toggle ${ window_state_control-center == "open" ? "open" : "closed" }"
{ notification_modes =~ "dnd" ? "󰂠" : "󰂚"})
(eventbox :onclick "sh scripts/eww-window.sh toggle control-center"
:onrightclick "makoctl mode -t dnd"
:class "control-center-toggle ${ window_state_control-center == "open" ? "open" : "closed" }"
(box :class "button"
{ notification_modes =~ "dnd" ? "󰂠" : "󰂚"}
)
)
)