sketchybar: change the clock format to more resemble macOS's

This commit is contained in:
Nico 2025-10-27 14:35:34 +11:00
parent 198e8ec594
commit e8028e3a26
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
2 changed files with 2 additions and 10 deletions

View file

@ -4,12 +4,4 @@
# the item invoking this script:
# https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
HOUR=$(date +%l)
if (( $HOUR >= 10 )); then
sketchybar --set "$NAME" label.padding_right=10
else
sketchybar --set "$NAME" label.padding_right=20
fi
sketchybar --set "$NAME" label="$(date +'%l:%M %p')"
sketchybar --set "$NAME" label="$(date +'%a %d %b%l:%M %p')"

View file

@ -124,7 +124,7 @@ sketchybar --add item clock right \
update_freq=10 \
background.padding_right=0 \
background.padding_left=0 \
label.padding_right=20 \
label.padding_right=10 \
script="$PLUGIN_DIR/clock.sh"
# Input Method