waybar-mpd(5)
β¨ waybar-mpd(5) β¨
okay bestie, buckle up π this is waybar-mpd(5), a page from the File Formats Manual, and it's literally all about the waybar mpd module. no cap.
πΈ NAME πΈ
waybar - mpd module β yes that's the whole name, she's mysterious, she's iconic π
π¦ DESCRIPTION π¦
So the mpd module? It displays information about a running Music Player Daemon instance. That's it. That's the vibe. Your music, but make it a little bar at the top of your screen π
π CONFIGURATION π
This whole situation is addressed by mpd. Below are all the knobs and dials you can turn, fr fr:
serverβ typeof: string. The network address or Unix socket path of the MPD server. If it's empty, we connect to the default host. simple as.portβ typeof: integer. The port MPD listens to. If empty, use the default port.passwordβ typeof: string. The password required to connect to the MPD server. If empty, no password gets sent to MPD, periodt.intervalβ typeof: integer, default:5. The interval in which the connection to the MPD server is retried. she checks in on you every 5 seconds π«Άtimeoutβ typeof: integer, default:30. The timeout for the connection. Change this if your MPD server has a lowconnection_timeoutsetting β οΈunknown-tagβ typeof: string, default:"N/A". The text to display when a tag is not present in the current song, but used informat. placeholder bestie πformatβ typeof: string, default:"{album} - {artist} - {title}". Information displayed when a song is playing πΆformat-stoppedβ typeof: string, default:"stopped". Information displayed when the player is stopped.format-pausedβ typeof: string. This format is used when a song is paused βΈοΈformat-disconnectedβ typeof: string, default:"disconnected". Information displayed when the MPD server can't be reached πtooltipβ typeof: bool, default:true. Option to disable tooltip on hover.tooltip-formatβ typeof: string, default:"MPD (connected)". Tooltip information displayed when connected to MPD.tooltip-format-disconnectedβ typeof: string, default:"MPD (disconnected)". Tooltip information displayed when the MPD server can't be reached.artist-lenβ typeof: integer. Maximum length of the Artist tag.album-lenβ typeof: integer. Maximum length of the Album tag.album-artist-lenβ typeof: integer. Maximum length of the Album Artist tag.title-lenβ typeof: integer. Maximum length of the Title tag.rotateβ typeof: integer. Positive value to rotate the text label (in 90 degree increments) πmax-lengthβ typeof: integer. The maximum length in character the module should display.min-lengthβ typeof: integer. The minimum length in characters the module should accept.alignβ typeof: float. The alignment of the label within the module, where0is left-aligned and1is right-aligned. If the module is rotated, it will follow the flow of the text.justifyβ typeof: string. The alignment of the text within the module's label, allowing options'left','right', or'center'to define the positioning.on-clickβ typeof: string. Command to execute when clicked on the module.on-click-middleβ typeof: string. Command to execute when middle-clicked on the module using mousewheel.on-click-rightβ typeof: string. Command to execute when you right-click on the module.on-updateβ typeof: string. Command to execute when the module is updated.on-scroll-upβ typeof: string. Command to execute when scrolling up on the module.on-scroll-downβ typeof: string. Command to execute when scrolling down on the module.smooth-scrolling-thresholdβ typeof: double. Threshold to be used when scrolling.state-iconsβ typeof: object, default:{}. Icon to show depending on the play/pause state of the player ({ "playing": "...", "paused": "..." }).consume-iconsβ typeof: object, default:{}. Icon to show depending on the"consume"option ({ "on": "...", "off": "..." }).random-iconsβ typeof: object, default:{}. Icon to show depending on the"random"option ({ "on": "...", "off": "..." }).repeat-iconsβ typeof: object, default:{}. Icon to show depending on the"repeat"option ({ "on": "...", "off": "..." }).single-iconsβ typeof: object, default:{}. Icon to show depending on the"single"option ({ "on": "...", "off": "..." }).menuβ typeof: string. Action that popups the menu.menu-fileβ typeof: string. Location of the menu descriptor file. There need to be an element of typeGtkMenuwith idmenuπmenu-actionsβ typeof: array. The actions corresponding to the buttons of the menu.expandβ typeof: bool, default:false. Enables this module to consume all left over space dynamically. main character energy, taking up all the room π
π FORMAT REPLACEMENTS π
These are the little {...} tokens you can drop into your formats, and what they turn into. iykyk.
πΆ WHEN PLAYING/PAUSED
{artist}: The artist of the current song{albumArtist}: The artist of the current album{album}: The album of the current song{title}: The title of the current song{date}: The date of the current song{volume}: The current volume in percent{elapsedTime}: The current position of the current song. To format as a date/time (see example configuration){totalTime}: The length of the current song. To format as a date/time (see example configuration){songPosition}: The position of the current song.{queueLength}: The length of the current queue.{uri}: The URI of the song relative to the MPD music directory.{filename}The last part of the URI.{stateIcon}: The icon corresponding to the playing or paused status of the player (see state-icons option){consumeIcon}: The icon corresponding the"consume"option (see consume-icons option){randomIcon}: The icon corresponding the"random"option (see random-icons option){repeatIcon}: The icon corresponding the"repeat"option (see repeat-icons option){singleIcon}: The icon corresponding the"single"option (see single-icons option)
βΉοΈ WHEN STOPPED
{consumeIcon}: The icon corresponding the"consume"option (see consume-icons option){randomIcon}: The icon corresponding the"random"option (see random-icons option){repeatIcon}: The icon corresponding the"repeat"option (see repeat-icons option){singleIcon}: The icon corresponding the"single"option (see single-icons option)
π WHEN DISCONNECTED
Currently, no format replacements when disconnected. that's it. nothing. empty. ghost town π
π EXAMPLES π
here's a whole config, copy it, love it, make it yours π
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"interval": 2,
"consume-icons": {
"on": " " // Icon shows only when "consume" is on
},
"random-icons": {
"off": "<span color="#f53c3c"></span> ", // Icon grayed out when "random" is off
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
}
psst β that // Comment inside the JSON? waybar-style config, bestie. don't @ me.
π STYLE π
these are the CSS selectors you can dress up, and they all go crazy:
#mpd#mpd.disconnected#mpd.stopped#mpd.playing#mpd.paused
and that's the whole page π«Ά you just read waybar-mpd(5) from the File Formats Manual, dated 2026-02-08. go make your bar cute, bestie β slay π
β¨π
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms