summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar/plugins/clock.sh
blob: f93c806e19f01139f60626ea5b0973c0469168ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

# Source colors for consistent theming
source "$CONFIG_DIR/colors.sh"

# Get current time and date
TIME=$(date "+%I:%M %p")
DATE=$(date "+%a %d %b")

# Format the label with both time and date
LABEL="$TIME  $DATE"

# Set the clock with enhanced styling
sketchybar --set "$NAME" label="$LABEL" \
                        icon="󰅐" \
                        icon.color=$YELLOW \
                        label.color=$WHITE \
                        label.font="SF Pro:Medium:13.0"