SketchyBar/plugins/gitNotifications.sh

10 lines
187 B
Bash
Executable file

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