MprisCustomHud
Mod(Linux only) Mpris music info addon for CustomHud and Hudder
Type
Mod
Modrinth Downloads
255
Modrinth ID
orQ06foG
Last Updated
Apr 13, 2026
Description
MprisCustomHud
Important
Description
Variables for CustomHud and Hudder to show currently playing music using the Mpris DBus Spec. Available for all versions CustomHud v4 is available for! Works with Hudder 8.x, 9.x on version 1.21.9/10 and 10.x for version 1.21.11/26.1.x It is heavily inspired by Hudify, so thank you for your work Lightningtow ig :)
Variables
All String variables are either not empty or null
Name Type Description mpris_track String currently playing track name mpris_trackid String the unique mpris track id (mostly for debugging) mpris_album String name of the album the track is from mpris_repeat String repeat status - "None", "Track" or "Playlist" mpris_artist String name of the first artist coming from mpris mpris_artists String/List<String> for Hudder (comma seperated) list of artists mpris_player String the pretty player name from the Identity attribute of org.mpris.MediaPlayer2 mpris_shuffle Boolean wether shuffle is on mpris_playing Boolean wether the song is playing or paused/stopped mpris_data_age Number the age of the metadata information (track, trackid, album, artist, artists, duration) in milliseconds mpris_progress Number progress in milliseconds mpris_duration Number duration of the track in milliseconds mpris_rate Number the rate/speed the music is playing as floating point numberHudder exclusive things
Variables
Name Type Description has_mpris Boolean always true mpris_player_info Object/PlayerInfo the PlayerInfo object of the currently selected player mpris_players List<String> a list of currently tracked players that can be used in getPlayerInfoFunctions
Name Arguments Returns getPlayerInfo String name the PlayerInfo object with the bus name org.mpris.MediaPlayer2.<name> or nullObjects
PlayerInfo:
- String busname - the busname
- String name - player name
- String repeat - repeat status - see mpris_repeat
- boolean shuffle - shuffle status
- boolean playing - wether music is playing
- double rate - the rate the music is playing at
- Metadata metadata - metadata
- long progress() - returns the current progress (in ms)
Metadata:
- String track - current track
- String trackid - current track id
- String album - current album
- String artist - first artist
- List<String> artists - all artists
- long duration - duration of current track (in ms)
- long data_age() - returns the age of the object (in ms)
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 onlyPreferred is disabled (default)). You can choose a player to prefer over others by using mpriscustomhud preferred <player> so that one will always be shown if it's active. If you don't want to see other players (only the preferred one), you can use mpriscustomhud onlyPreferred true. This will result in no player being selected if you didn't set a preferred one. With mpriscustomhud player, you get the currently active player, with mpriscustomhud onlyPreferred 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
Libraries used
- dbus-java
- Improved version of java DBus library provided by freedesktop.org https://dbus.freedesktop.org/doc/dbus-java
License
This Mod is licensed under the MIT License
Compatibility
Mod Loaders
Game Versions
Similar Mods
Music Disc Recipe
Now you can craft your own music discs
The Sculk Sword
A Simple mod that adds a Sword by defeating the Warden.
RP Campfire
Campfires gives regeneration and protection against monsters by consuming wood.
Better Deco- The new Furniture Way
Stylous Vanilla-Friandly decorations
Handheld Crafting Table
Handheld Crafting Table | Makes Life Easier
Instrumentus
Instrumentus add a variety of new and useful tools to minecraft in order to increase your efficiency. Anything from simp...