perf: use toggle to open calendar instead of variable

This commit is contained in:
João Dias
2024-11-23 11:57:03 -03:00
parent 748c0ae60f
commit cbbd43c4f2
+1 -3
View File
@@ -2,11 +2,9 @@
(defpoll datetime :interval "10s" (defpoll datetime :interval "10s"
"date +'%A %d, %H:%M'") "date +'%A %d, %H:%M'")
(defvar calendar_state "hidden")
(defwidget clock [] (defwidget clock []
(box :class "clock" (box :class "clock"
(button :onclick "sh ./scripts/display-calendar.sh" (button :onclick "eww open calendar --toggle"
"${datetime}") "${datetime}")
) )
) )