summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/datetime-listener
blob: 9e8147620f6c37cea0e5b0d8505226c326de3c44 (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