From 2cba464bf76835870b502748336a9bb3d137fbba Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 12 Jan 2024 14:57:44 +0100 Subject: eww: Remove calendar support --- .config/eww/scripts/datetime-listener | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to '.config/eww/scripts/datetime-listener') 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 -- cgit v1.2.3