summaryrefslogtreecommitdiff
path: root/dot-config/sketchybar/plugins/clock.sh
blob: edb27d5eb0b61d80e713c49379dfcb869794f87c (plain)
1
2
3
4
5
6
7
8
#!/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 '+%a %b %d %I:%M %p')"