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 ofoffline,stopped,paused, orplaying. Literally the mood ring of your MPD, bestie.repeatโboolโTrueif the repeat flag is set. The song said โagainโ and meant it ๐randomโboolโTrueif the random flag is set. Shuffle mode said โsurprise meโ โจconsumeโboolโTrueif 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 seeelapsed). Itโs giving timestamp realness โฑ๏ธendโstringโ%M:%S-formatted string describing the songโs total length (also seeduration). The finish line, lowkey ๐elapsedโrealtimeโ position in currently playing song, in milliseconds. Can be used with aprogress-barparticle. 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
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms