News for hackers. Stuff that matters.
Re:Music for Programming by remedan on Monday July 05, 2021 @11:58AM (#27739251)
Sounds like you might be interested in playerctl [0]. I use global shortcuts for its play, pause, next, and previous actions. It has the ability to control Spotify, Firefox and other players. And Firefox media controls work for YouTube, SoundCloud, and even the site this post is about.

0: https://github.com/altdesktop/playerctl

Re:Music for Programming by ThibJP on Monday July 05, 2021 @12:12PM (#27739407)
I can confirm, I integrated playerctl with my i3 environment, very pleased by it! Especially binding pause with locking my screen, it prevent me to loose track of my current podcast.

The only limitation that I found : if you have multiples media playing, playerctl will interact only with the lastest used one. So when you are running multiples one, you can't stop them all at once.

Re:Music for Programming by rgrau on Monday July 05, 2021 @12:05PM (#27739319)
yes! that looks super useful indeed. Thanks!