Redesign Eww bars

This commit is contained in:
soraefir
2023-11-21 16:52:35 +01:00
parent 285d5caa8e
commit 8a833d1eb6
47 changed files with 785 additions and 37 deletions

View File

@@ -0,0 +1,31 @@
(defvar date_rev false)
(defwidget clock []
(box
:class "module datetime"
(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 "date"
:orientation "v"
(button
:onclick "${EWW_CMD} open --toggle calendar"
:class "day" day)
(button
:onclick "${EWW_CMD} open --toggle calendar"
:class "month" month)))))))
(defpoll hour :interval "15s" "date '+%H'")
(defpoll minute :interval "15s" "date '+%M'")
(defpoll day :interval "15s" "date '+%d'")
(defpoll month :interval "15s" "date '+%m'")