From c2fbc4d1717864a0055592e0b73d71c010e8686c Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Fri, 8 Nov 2024 20:48:58 +0000 Subject: Initial commit --- .config/eww/scripts/date-time.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .config/eww/scripts/date-time.sh (limited to '.config/eww/scripts/date-time.sh') diff --git a/.config/eww/scripts/date-time.sh b/.config/eww/scripts/date-time.sh new file mode 100755 index 0000000..9835842 --- /dev/null +++ b/.config/eww/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") +icon="" +printf "%s" "$date " -- cgit v1.2.3