yambar-modules-mpd(5)

yambar-modules-mpd5

This module provides mpd status such as currently playing artist/album/song

Tags

NameTypeDescription
statestringOne of offline, stopped, paused or playing
repeatboolTrue if the repeat flag is set
randomboolTrue if the random flag is set
consumeboolTrue if the consume flag is set
volumerangeVolume of MPD in percentage
albumstringCurrently playing album (also valid in paused state)
artiststringArtist of currently playing song (also valid in paused state)
titlestringTitle of currently playing song (also valid in paused state)
filestringFilename or URL of currently playing song (also valid in paused state)
posstring%M:%S-formatted string describing the song's current position (also see elapsed)
endstring%M:%S-formatted string describing the song's total length (also see duration)
elapsedrealtimePosition in currently playing song, in milliseconds. Can be used with a progress-bar particle.
durationintLength of currently playing song, in milliseconds

Configuration

NameTypeReqDescription
hoststringyesHostname/IP/unix-socket to connect to
portintnoTCP port to connect to

Examples

bar:
  left:
    - mpd:
        host: /run/mpd/socket
        content:
          string: {text: "{artist} - {album} - {title} ({end})"}

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From yambar 1.11.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.