aboutsummaryrefslogtreecommitdiff
path: root/.config/yambar/scripts/date-time.sh
blob: 6968cec6ac4df7d00fee95c8bd3e987e03340a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
DaySuffix() {
  case `date +%-d` in
    1|21|31) echo "st";;
    2|22)    echo "nd";;
    3|23)    echo "rd";;
    *)       echo "th";;
  esac
}
date=$(date "+%A %-d`DaySuffix` %B %Y - %H:%M")
icon=""
printf "%s" "$date"