yambar-modules-mpd(5)

๐Ÿ’ฟ NAME ๐Ÿ’ฟ

okay bestie, welcome to yambar-modules-mpd(5), straight out of the File Formats Manual โ€” itโ€™s giving MPD status realness and weโ€™re obsessed. This module provides MPD status such as currently playing artist/album/song. Thatโ€™s the whole vibe, no cap. ๐Ÿ’–

๐Ÿท๏ธ TAGS ๐Ÿท๏ธ

  • state โ€” string โ€” one of offline, stopped, paused, or playing. Literally the mood ring of your MPD, bestie.
  • repeat โ€” bool โ€” True if the repeat flag is set. The song said โ€œagainโ€ and meant it ๐Ÿ”
  • random โ€” bool โ€” True if the random flag is set. Shuffle mode said โ€œsurprise meโ€ โœจ
  • consume โ€” bool โ€” True if the consume flag is set. Itโ€™s giving โ€œeat the playlistโ€ energy ๐Ÿ’€
  • volume โ€” range โ€” volume of MPD in percentage. Turn it up, but respectfully ๐ŸŽš๏ธ
  • album โ€” string โ€” currently playing album (also valid in paused state). Album era acknowledged ๐ŸŽ€
  • artist โ€” string โ€” artist of currently playing song (also valid in paused state). Main character credit, periodt ๐Ÿ‘‘
  • title โ€” string โ€” title of currently playing song (also valid in paused state). The name of the bop, fr fr ๐ŸŒธ
  • file โ€” string โ€” filename or URL of currently playing song (also valid in paused state). The literal source material ๐Ÿฆ‹
  • pos โ€” string โ€” %M:%S-formatted string describing the songโ€™s current position (also see elapsed). Itโ€™s giving timestamp realness โฑ๏ธ
  • end โ€” string โ€” %M:%S-formatted string describing the songโ€™s total length (also see duration). The finish line, lowkey ๐Ÿ
  • elapsed โ€” realtime โ€” position in currently playing song, in milliseconds. Can be used with a progress-bar particle. Progress-bar girlies, this oneโ€™s for you ๐Ÿ“Š
  • duration โ€” int โ€” length of currently playing song, in milliseconds. The whole songโ€™s runtime, no guesswork ๐Ÿ’œ

โš™๏ธ CONFIGURATION โš™๏ธ

  • host โ€” string โ€” Req: yes โ€” hostname/IP/unix-socket to connect to. Required, bestie โ€” itโ€™s the connection main character ๐Ÿ”Œ
  • port โ€” int โ€” Req: no โ€” TCP port to connect to. Optional, but useful if youโ€™re doing the TCP thing ๐Ÿซถ

๐ŸŒˆ EXAMPLES ๐ŸŒˆ

hereโ€™s the exact example from the page โ€” characters stay exactly where they are, we do not mess with the config, we just vibe with it:

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

slay. Thatโ€™s the whole bar setup, and itโ€™s eating. ๐Ÿ’…

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

go read these too, bestie โ€” theyโ€™re iconic and theyโ€™re part of the lore:


Thatโ€™s the whole vibe ๐Ÿ’– this page is yambar-modules-mpd(5) from the File Formats Manual, dated 2024-04-22 โ€” go forth and make your bar iconic, bestie ๐Ÿ‘‘โœจ

๐Ÿ“ฆ where this page comes from