diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-29 22:00:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-29 22:00:27 +0900 |
| commit | fa93da5e5a6b2a9c4f9a4b0b0070465e292c2124 (patch) | |
| tree | ce5298d59a6c2bae32ee2d0535a8f6bc56c97e93 /mac/.config/sketchybar/plugins | |
| parent | 15c7512e4f40abf0a130c6d5013dde1c87336715 (diff) | |
modified plugins/youtube-music.sh, modified sketchybar/sketchybarrc
Diffstat (limited to 'mac/.config/sketchybar/plugins')
| -rwxr-xr-x | mac/.config/sketchybar/plugins/youtube-music.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mac/.config/sketchybar/plugins/youtube-music.sh b/mac/.config/sketchybar/plugins/youtube-music.sh index 6767275..eb4ef8e 100755 --- a/mac/.config/sketchybar/plugins/youtube-music.sh +++ b/mac/.config/sketchybar/plugins/youtube-music.sh @@ -5,12 +5,13 @@ SONG_INFO=$(curl -s 0.0.0.0:26538/api/v1/song-info) PAUSED="$(echo "$SONG_INFO" | jq -r '.isPaused')" CURRENT_SONG="$(echo "$SONG_INFO" | jq -r '.title + " - " + .artist')" ARTWORK="$(echo "$SONG_INFO" | jq -r '.imageSrc')" -ARTWORK_LOCATION="$(curl -O --output-dir "$TMPDIR" -s --remote-name -w "%{filename_effective}" "$ARTWORK")" +ARTWORK_LOCATION="$(curl -O --output-dir "${TMPDIR%/}" -s --remote-name -w "%{filename_effective}" "$ARTWORK")" if [ "$PAUSED" = true ]; then ICON= else ICON= fi -sketchybar --set "$NAME" label="$CURRENT_SONG" icon="$ICON" drawing=on -sketchybar --set "$NAME"-artwork background.image="$ARTWORK_LOCATION" + +sketchybar --set music-artwork background.image="$ARTWORK_LOCATION" +sketchybar --set music label="$CURRENT_SONG" icon="$ICON" drawing=on |
