diff options
author | Justine Smithies <justine@smithies.me.uk> | 2023-10-11 18:21:52 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2023-10-11 18:21:52 +0100 |
commit | 786f9c22fab19de866566de4c7933aef416a1462 (patch) | |
tree | 512c3563b43a511171979604d6a2a09a4b68c50a /.config/yambar/scripts/date-time.sh | |
parent | ba6e0a870faa3306b1e15bd03460b2faa30ceb37 (diff) |
Switched to River
Diffstat (limited to '.config/yambar/scripts/date-time.sh')
-rwxr-xr-x | .config/yambar/scripts/date-time.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/yambar/scripts/date-time.sh b/.config/yambar/scripts/date-time.sh new file mode 100755 index 0000000..6968cec --- /dev/null +++ b/.config/yambar/scripts/date-time.sh @@ -0,0 +1,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" |