Перейти к содержимому
Mineforgian

MediaToast

Current playing media info via the vanilla music toast (previously MprisToast)

Загрузки
655
Подписчики
10
Обновлён
16 июня 2026 г.
Лицензия
MIT

Опубликован 21 февраля 2026 г.

MediaToast

Description

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 :)

Controls

There are keybindings for play/pause, next, previous, refresh and cycle through active players.

Configuration

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.

Linux Flatpak notice

  • when you're running Minecraft in a Flatpak sandbox, you have to add org.mpris.MediaPlayer2.* to the list of well known session bus names your launcher can talk to e.g. with Flatseal

Notes

  • there will be no older versions, as the music toast didn't exist pre 1.21.6 (how did I think it was 1.21.10)
  • macOS is probably not supported (I also have no way to test it)

Libraries used

License

This Mod is licensed under the MIT License

Ченджлог

1.3.3Релиз26.2 · 16 июня 2026 г.

26.2 compatibility

1.3.3-2Релиз26.1, 26.1.1, 26.1.2 · 1 апреля 2026 г.

26.1.1

1.3.3Релиз1.21.6, 1.21.7, 1.21.8 · 24 марта 2026 г.
  • support 26.1
  • use stonecutter for multiversion
  • fix small visual bug with vulkanmod
  • other minor fixes
1.3.2Релиз1.21.9, 1.21.10, 1.21.11 · 10 марта 2026 г.
  • fix a bug on 1.21.10 where a toast without text will be rendered when no music is playing
  • support 1.21.6 - 1.21.9 too because apparently the toast was added in 1.21.6 (lol)
    • luckily there was nothing changed with the toast in these versions
1.3.1Релиз1.21.10, 1.21.11 · 8 марта 2026 г.
  • hotfix not working on windows (dependency update)
1.3.0Релиз1.21.10, 1.21.11 · 8 марта 2026 г.

New name: MediaToast as there is:

  1. completely new backend (mediainterface)
  2. because of that it doesn't just use MPRIS as it supports Windows now!
  • the music notes animation in the toast now stops if the music is paused
  • small bugfixes

Because of the name and backend change, your config will be reset

1.2.4Релиз1.21.10, 1.21.11 · 3 марта 2026 г.
  • small fix
  • restrict the maximum width of the toast and make the text scroll if it's too long
1.2.3Релиз1.21.10, 1.21.11 · 25 февраля 2026 г.
  • proper display name in the config screen

Комментарии

Загружаем…