diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-12 14:57:44 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-12 14:57:44 +0100 |
commit | 2cba464bf76835870b502748336a9bb3d137fbba (patch) | |
tree | 4cebe1734db9bb14c6db091ad8ce5825fe459b7f /.config/eww/scripts | |
parent | 3223fa64c9c7f993a20ac5ff0271bd98936b45e5 (diff) |
eww: Remove calendar support
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x | .config/eww/scripts/datetime-listener | 17 |
1 files changed, 12 insertions, 5 deletions
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 |