summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/datetime-listener
blob: b10f4a5440e09389b129d6399b9b70efaf22cd16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

while :
do
	# {
	# 	date +'%A, %-d of %B %Y — %T %Z'
	# 	TZ='Asia/Kolkata' date +'(%T %Z)'
	# } | paste -sd ' '
	date +'%A, %-d of %B %Y — %T %Z'
	sleep "$(date +'%s.%N' | dc -e '? d 1 + 1 / r - p')"
done | ordinal -p1