crissNb/Dynamic-Island-Sketchybar

Music won't close

Closed this issue · 1 comments

Hi. I've found that with the bar running, if I quit music, it automatically reopens again.
(Note that I have a separate extension that grays out hidden apps, the music app being grayed out has nothing to do with sketchybar)
https://user-images.githubusercontent.com/83092267/194447890-52128fa5-33be-4947-b01a-e3068178cdf3.mov

Yeah, that definitely shouldn't be happening. I'll look into fixing this issue. As a temporary "solution", you can disable the music dynamic island entirely in ~/items/dynamic_island.sh:

        popup.background.shadow.drawing=off \
        popup.drawing=false \
        horizontal=off \
# START DELETE
--add event	  music_change "com.apple.Music.playerInfo" \
--add item	  musicListener\
--set musicListener	script="$PLUGIN_DIR/dynamic_island/islands/music/music_island.sh" \
--subscribe musicListener music_change \
# END DELETE
--add item	  frontAppSwitchListener \
--set frontAppSwitchListener script="$PLUGIN_DIR/dynamic_island/islands/appswitch/handler.sh" \
--subscribe frontAppSwitchListener front_app_switched

Delete the four lines as shown above. I'm planning to implement a better way of toggling modules as well.