feat(sketchybar): rebuild sketchybar config

This commit is contained in:
js0ny 2025-03-03 22:39:12 +00:00
parent d93d153827
commit 0af876301c
27 changed files with 615 additions and 1059 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
STATE="$(echo "$INFO" | jq -r '.state')"
APP="$(echo "$INFO" | jq -r '.app')"
if [ "$STATE" = "playing" ] && [ "$APP" == "Spotify" ]; then
MEDIA="$(echo "$INFO" | jq -r '.title + " - " + .artist')"
sketchybar --set "$NAME" label="$MEDIA" drawing=on
else
sketchybar --set "$NAME" drawing=off
fi