dotfiles/platforms/mac/sketchybar/plugins/music.sh
2025-02-25 12:36:22 +00:00

7 lines
206 B
Bash
Executable file

#!/bin/bash
music_info=$(curlie GET http://localhost:10767/api/v1/playback/now-playing | jq -r '"\(.info.name) - \(.info.artistName)"')
ICON=""
sketchybar --set $NAME label="$music_info" icon="$ICON"