Fix Eww hover
All checks were successful
Nix Build / build-nixos (push) Successful in 6m40s

This commit is contained in:
soraefir
2024-05-18 16:52:08 +02:00
parent de33b74926
commit 8ed8e2b2e2
5 changed files with 31 additions and 36 deletions

View File

@@ -5,36 +5,30 @@
(eventbox
:onhover "${EWW_CMD} update date_rev=true"
:onhoverlost "${EWW_CMD} update date_rev=false"
:onclick "(sleep 0.1 && ${EWW_CMD} open --toggle calendar)"
:onrightclick "(sleep 0.1 && ${EWW_CMD} open --toggle powermenu)"
(box
:class "datetime"
(overlay
(box
:orientation "v"
(button
:class "hour"
(label :show-truncated false
:text {hour}))
(button
:class "minute"
(label :show-truncated false
:text {minute})))
(label :show-truncated false
:class "hour"
:text {hour})
(label :show-truncated false
:class "minute"
:text {minute}))
(revealer
:reveal date_rev
(box
:class "date"
:orientation "v"
(button
:onclick "${EWW_CMD} open --toggle calendar"
:onrightclick "${EWW_CMD} open --toggle powermenu"
(label :show-truncated "false"
:class "day"
(label :show-truncated "false"
:text {day}))
(button
:onclick "${EWW_CMD} open --toggle calendar"
:onrightclick "${EWW_CMD} open --toggle powermenu"
:text {day})
(label :show-truncated "false"
:class "month"
(label :show-truncated "false"
:text {month})))
:text {month}))
)
)
)