Run, Developer, Run!

Music Control Tip

Media Controls

Did you know that you can "blacklist" songs on Spotify, by automatically skipping them? Or automatically switch to the next online radio station when there is a song you don't like. Or skip songs containing Live in title, because I still can not undertand why people put such things on the web. Basically, any media control automation you can imagine.

All you need is a playerctl . What it does, it allows to listen media for player events, for example, do action on song change. Also, it allows universal control of media players, for example pausing or skipping the song. Works with any player with MPRIS D-Bus support, so VLC, Spotify, Youtube in the browser, etc. You can write scripts in Bash or Python (for Python bindings install libplayerctl-dev gir1.2-playerctl-2.0 ).


Contact

Search

 

Follow

Me on Twitter, Mastodon and Github

We have RSS!

© 20xx

Hosted on Cloudflare Pages, which is awesome!