This commit is contained in:
mr0xb 2026-06-03 14:36:50 -04:00
commit 715eb53860
No known key found for this signature in database
57 changed files with 7755 additions and 3 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
# Dato integration with clean 12-hour format
# Simple, clean date and time display
# Get current date and time in 12-hour format
DAY=$(date '+%-d')
MONTH=$(date '+%B')
YEAR=$(date '+%Y')
TIME=$(date '+%-I:%M %p %Z')
# Add ordinal suffix to day
case $DAY in
1|21|31) SUFFIX="st";;
2|22) SUFFIX="nd";;
3|23) SUFFIX="rd";;
*) SUFFIX="th";;
esac
# Set clean label with full format
sketchybar --set "$NAME" label="$MONTH ${DAY}${SUFFIX}, $YEAR $TIME"