Eww: Modularized and improved CSS

This commit is contained in:
soraefir
2023-11-23 20:46:43 +01:00
parent 5e569bbb48
commit afaed60935
12 changed files with 207 additions and 139 deletions

View File

@@ -1,20 +1,21 @@
(defvar date_rev false)
(defwidget clock []
(box
:class "module datetime"
(defwidget clock-mod []
(module
(eventbox
:onhover "${EWW_CMD} update date_rev=true"
:onhoverlost "${EWW_CMD} update date_rev=false"
(overlay
(box
:orientation "v"
(button
:class "hour" hour)
(button
:class "minute" minute))
(revealer
:reveal date_rev
(box
:class "datetime"
(overlay
(box
:orientation "v"
(button
:class "hour" hour)
(button
:class "minute" minute))
(revealer
:reveal date_rev
(box
:class "date"
:orientation "v"
@@ -25,7 +26,13 @@
(button
:onclick "${EWW_CMD} open --toggle calendar"
:onrightclick "${EWW_CMD} open --toggle powermenu"
:class "month" month)))))))
:class "month" month))
)
)
)
)
)
)
(defpoll hour :interval "15s" "date '+%H'")
(defpoll minute :interval "15s" "date '+%M'")