nixos-config/modules/home/sketchybar/plugins/clock.sh

8 lines
256 B
Bash
Raw Normal View History

2026-02-21 23:19:14 +01:00
#!/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 '+%Z'): $(date '+%H:%M')"