summaryrefslogtreecommitdiff
path: root/.config/eww
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-12 14:57:44 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-12 14:57:44 +0100
commit2cba464bf76835870b502748336a9bb3d137fbba (patch)
tree4cebe1734db9bb14c6db091ad8ce5825fe459b7f /.config/eww
parent3223fa64c9c7f993a20ac5ff0271bd98936b45e5 (diff)
eww: Remove calendar support
Diffstat (limited to '.config/eww')
-rw-r--r--.config/eww/eww.yuck21
-rwxr-xr-x.config/eww/scripts/datetime-listener17
2 files changed, 14 insertions, 24 deletions
diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck
index 8937f26..285f7eb 100644
--- a/.config/eww/eww.yuck
+++ b/.config/eww/eww.yuck
@@ -5,7 +5,7 @@
(deflisten workspace-list :initial '[1]'
`stdbuf -oL scripts/workspace-list-listener`)
-(deflisten datetime :initial '{"pretty":"","month":0}'
+(deflisten datetime
`stdbuf -oL scripts/datetime-listener`)
(deflisten brightness
@@ -35,23 +35,6 @@
:geometry (geometry :width "100%" :height "40px" :anchor "top center")
(bar))
-(defwindow calendar-1
- :monitor 0
- :geometry (geometry :x "10%" :width "20%" :anchor "center left")
- (calendar :class "cal"
- :month {datetime.month - 1}))
-
-(defwindow calendar-2
- :monitor 0
- :geometry (geometry :width "20%" :anchor "center")
- (calendar :class "cal"))
-
-(defwindow calendar-3
- :monitor 0
- :geometry (geometry :x "10%" :width "20%" :anchor "center right")
- (calendar :class "cal"
- :month {datetime.month + 1}))
-
(defwidget bar []
(centerbox
(start)
@@ -84,7 +67,7 @@
id))))
(defwidget clock []
- {datetime.pretty})
+ datetime)
(defwidget wireless []
(pair :icon "" :text wireless))
diff --git a/.config/eww/scripts/datetime-listener b/.config/eww/scripts/datetime-listener
index 53bcf9e..5fda3b3 100755
--- a/.config/eww/scripts/datetime-listener
+++ b/.config/eww/scripts/datetime-listener
@@ -1,9 +1,16 @@
#!/bin/sh
+# while true {
+# {
+# date +'%A, %-d of %B %Y — %T %Z'
+# env TZ=Asia/Kolkata date +'(%H:%M %Z)'
+# }
+# | paste -sd' '
+# sleep `date +%s.%N | dc -e '? d 1 + 1 / r - p'
+# } | ordinal -p1
+
while :
do
- date +"pretty='%A, %-d of %B %Y — %T %Z' month='%m'" \
- | ordinal -p1 \
- | xargs jo
- date +%s.%N | dc -e "? d 1 + 1 / r - p" | xargs sleep
-done
+ date +'%A, %-d of %B %Y — %T %Z' | paste -sd' '
+ sleep "$(date +'%s.%N' | dc -e '? d 1 + 1 / r - p')"
+done | ordinal -p1