▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/MprisCustomHud
MprisCustomHud

MprisCustomHud

(Linux only) Mpris music info addon for CustomHud

178
1

MprisCustomHud

Important

Description

Just what you might expect from the name: Variables for CustomHud to show currently playing music using the Mpris DBus Spec.
It is heavily inspired by Hudify, so thank you for your work Lightningtow ig :)

Variables

NameTypeDescription
mpris_trackStringcurrently playing track name
mpris_track_idStringthe unique mpris track id (mostly for debugging)
mpris_albumStringname of the album the track is from
mpris_loopStringloop status - "None", "Track" or "Playlist"
mpris_artistStringname of the first artist coming from mpris
mpris_artistsStringcomma seperated list of artists
mpris_playerStringthe pretty player name from the Identity attribute of org.mpris.MediaPlayer2
mpris_shuffleBooleanwether shuffle is on
mpris_playingBooleanwether the song is playing or paused/stopped
mpris_progressSpecialprogress in (HH:)?MM:SS format, number of seconds, progress > 0
mpris_durationSpecialduration of the track in (HH:)?MM:SS format, number of seconds, duration > 0
mpris_rateSpecialthe rate/speed the music is playing at, rate as floating point number, rate > 0

Controls

There are keybindings for play/pause, next, previous, refresh and cycle through active players that all have correcsponding commands.

Configuration

By default a player is selected from the active ones. To cycle through the currently active ones, use the mpriscustomhud cycle command (only works if no filter is set).
You can also choose a mpris player if you only want to see that one with the mpriscustomhud filter <player> command which will also suggest currently active ones.
If you still want to see other players but prefer one of them, use mpriscustomhud preferred <player> so that one will always be shown if it's active.
With mpriscustomhud player, you get the currently active player, with mpriscustomhud filter and mpriscustomhud preferred the values for that and with mpriscustomhud refresh, you can refresh the variables.

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

Problems/Todo

  • currently there is no album art variable; maybe I will try to add it at some point
  • the mpris_progress variable is not a perfect representation of the actual progress, but should be good enough
    (it's still not perfect, but much better)

Libraries used

License

This Mod is licensed under the MIT License

Совместимость

Minecraft: Java Edition

1.21.x1.20.x

Платформы

Поддерживаемые окружения

Клиент

Создатели

Детали

Лицензия:MIT
Опубликован:4 месяца назад
Обновлён:3 месяца назад
Главная