mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
sync: from macOS 2024-12-05
This commit is contained in:
parent
7d220c3873
commit
053304c4d5
39 changed files with 1025 additions and 379 deletions
8
platforms/mac/sketchybar/plugins/music.sh
Executable file
8
platforms/mac/sketchybar/plugins/music.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue