dotfiles/.config/sketchybar/plugins/calendar.sh
2026-06-03 14:36:50 -04:00

14 lines
No EOL
314 B
Shell
Executable file

#!/bin/bash
# Calendar plugin with proper date formatting
# Get current date components
DAY=$(date '+%d')
MONTH_DAY=$(date '+%a %b %d')
TIME=$(date '+%H:%M')
# Remove leading zero from day for icon
ICON_DAY=$(date '+%-d')
# Format the display
sketchybar --set "$NAME" icon="$ICON_DAY" label="$MONTH_DAY $TIME"