sketchybar: init

This commit is contained in:
Nico 2025-05-03 16:16:03 +10:00
parent cc92b9c72c
commit 37f5757b2c
8 changed files with 257 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/bash
# The $NAME variable is passed from sketchybar and holds the name of
# 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 +'%a %d %b')$(date +'%I:%M %p')"