dotfiles/platforms/mac/sketchybar/plugins/clock.sh
2025-02-25 12:36:22 +00:00

7 lines
252 B
Bash
Executable file

#!/bin/sh
# 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
sketchybar --set "$NAME" label="$(date '+%d日周%u %H:%M')"