clock.sh
1  #!/bin/sh
2  
3  # The $NAME variable is passed from sketchybar and holds the name of
4  # the item invoking this script:
5  # https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
6  
7  sketchybar --set "$NAME" label="$(date '+%a %d %b   %H:%M')"
8