summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/datetime-listener
blob: 5fda3b397935e3f567c338fe65c6addc6584dab2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 +'%A, %-d of %B %Y — %T %Z' | paste -sd' '
	sleep "$(date +'%s.%N' | dc -e '? d 1 + 1 / r - p')"
done | ordinal -p1