aboutsummaryrefslogtreecommitdiff
path: root/.config/yambar/scripts/dater.sh
blob: 2c70b6323fed412ddf03964b30760a69b55fe2bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh


while true; do
number=$(date +'%d')

case $number in
    1*)extension=th;;
    *1)extension=st;;
    *2)extension=nd;;
    *3)extension=rd;;
    *)extension=th;;
esac

date=$(date +"%A $(printf ${number##0}$extension) %B %Y -")

echo "date|string|$date"
echo ""

sleep 60
done