Redesign Eww bars
This commit is contained in:
31
modules/home/wayland/apps/eww/bar/modules/clock.yuck
Normal file
31
modules/home/wayland/apps/eww/bar/modules/clock.yuck
Normal 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'")
|
||||
Reference in New Issue
Block a user