mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
21
.config/sketchybar/plugins/dato.sh
Executable file
21
.config/sketchybar/plugins/dato.sh
Executable 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"
|
||||
Loading…
Reference in a new issue