(defvar power_reveal false)

(defwidget quickpower []
    (eventbox :onhover "${eww} update power_reveal=true" :onhoverlost "${eww} update power_reveal=false"
        (box :space-evenly "false"
            (revealer :reveal power_reveal :transition "slideright"
                (box
                    ;(button :class "power sleep" :onclick "systemctl suspend" :tooltip "Sleep" "󰤄 ")
                    (button :class "power lock" :onclick "bash ./scripts/lock.sh" :tooltip "Lock" " ")
                    (button :class "power logout" :onclick "hyprctl dispatch exit" :tooltip "Logout" "󰍃 ")
                    (button :class "power restart" :onclick "reboot" :tooltip "Restart" " ")
                )
            )
            (button :class "power shutdown" :onclick "shutdown now" :tooltip "Shut Down" "󰐥")
        )
    )
)
