Hacker News new | ask | show | jobs
by remedan 1817 days ago
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

2 comments

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.

yes! that looks super useful indeed. Thanks!