yambar-modules-mpd - Man Page

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})"}

See Also

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)

Referenced By

yambar-modules(5).

2024-01-27