This (fabric) mod shows the media currently playing on your system using the vanilla music toast feature.
To make it work, you also have to enable the toast in vanilla options.
This mod is originally based on my other mod MprisCustomHud I made mainly to learn how to use MPRIS (and DBUS) with dbus-java.
This I made to learn a little bit about mixins and because I think it's cool :)
There are keybindings for play/pause, next, previous, refresh and cycle through active players.
By default a player is selected from the active ones and the mod is enabled, so you will not see toasts with vanilla music while your other music is playing. To cycle through the currently active ones, use the (only works if "Only preferred source" is disabled).
All options are located in the vanilla sound settings under the option to enable music toasts in the first place. They all have tooltips that explain what they do.
org.mpris.MediaPlayer2.* to the list of well known session bus names your launcher can talk to e.g. with FlatsealThis Mod is licensed under the MIT License