27 lines
784 B
Plaintext
27 lines
784 B
Plaintext
(defwidget clock []
|
|
(box :class "clock"
|
|
:tooltip { day_name + ", " + month_name + formattime(EWW_TIME, " %d") }
|
|
|
|
(eventbox :onclick "sh scripts/eww-window.sh toggle calendar-window"
|
|
:class '${ window_state_calendar-window == "open" ? "cal-open" : "" } button'
|
|
(box :space-evenly false
|
|
(box :space-evenly false
|
|
:class "time"
|
|
(label :text ""
|
|
:class "icon")
|
|
|
|
(label :text "${day_name}")
|
|
|
|
(revealer :reveal { window_state_calendar-window == "closed" }
|
|
:transition "slideright"
|
|
:duration "240ms"
|
|
:class "unrevealer"
|
|
|
|
(label :text { formattime(EWW_TIME, "%d, %H:%M") } )
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|