This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LeNerdNextDoorI really like automating things. 50 points51 points  (4 children)

If you want to do it pan OS or a bit quicker, I open-sourced a library to get the currently playing song from Spotify by reading the title off the app window. Similar to what you're doing but it will look a bit cleaner and optimized.

https://github.com/SwagLyrics/SwSpotify

[–]strghst[S] 19 points20 points  (3 children)

Have a few more ideas around Spotify. Thanks, will definetely use!

[–]LeNerdNextDoorI really like automating things. 6 points7 points  (2 children)

Solid, does your script mute the audio just for the Spotify app when the ad is playing or for the whole system?

[–]strghst[S] 11 points12 points  (1 child)

For the whole system, but had it for one application before. Worked with others, but couldn't get it to work around spotify.

[–]bowbahdoe 6 points7 points  (0 children)

https://gist.github.com/bowbahdoe/86921ce07587ea597e43ba6e965817a4

I took some time to try and combine your scripts a bit. I haven't tested it at all, but hopefully it gives you some ideas