SketchyBar/plugins/gitNotifications.sh

10 lines
185 B
Bash
Executable file

#!/usr/bin/env bash
NOTIFICATIONS="$(gh api notifications | jq '.[]')"
if [ "$NOTIFICATIONS" = "" ]; then
sketchybar --set $NAME icon=
else
sketchybar --set $NAME icon=
fi