fix: close EWW power menu on button press

This commit is contained in:
Kiana Sheibani 2025-02-27 15:50:13 -05:00
parent 2981dca288
commit c029404eaa
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -256,23 +256,23 @@
(box :class "power"
:orientation "v"
(box :orientation "h"
(button :onclick "systemctl suspend"
(button :onclick "${EWW_CMD} close power; systemctl suspend"
:tooltip "Sleep"
(box :style "color: #9aa5ce;"
"󰤄"))
(button :onclick "hyprlock --immediate &"
(button :onclick "${EWW_CMD} close power; hyprlock --immediate &"
:tooltip "Lock"
(box :style "color: #cfc9c2;"
""))
(button :onclick "hyprctl dispatch exit"
(button :onclick "${EWW_CMD} close power; hyprctl dispatch exit"
:tooltip "Log Out"
(box :style "color: #7dcfff; padding-left: 0.3ex;"
""))
(button :onclick "reboot"
(button :onclick "${EWW_CMD} close power; reboot"
:tooltip "Reboot"
(box :style "color: #e0af68;"
""))
(button :onclick "poweroff"
(button :onclick "${EWW_CMD} close power; poweroff"
:tooltip "Shutdown"
(box :style "color: #f7768e; font-size: 1.35em; padding-bottom: 0.15ex;"
"⏼")))