LUASTATUS-PLUGIN-MPD(7)
luastatus-plugin-mpd(7) π β¨
Okay bestie, this is the Miscellaneous Information Manual moment for luastatus-plugin-mpd(7) β group-chat explainer edition π«Ά.
πΈ NAME πΈ
luastatus-plugin-mpd β mpd plugin for luastatus.
β¨ OVERVIEW β¨
This plugin monitors the state of an mpd server. That's the whole vibe: it keeps an eye on it π.
π OPTIONS π
hostnameβstring. Hostname to connect to. Default is to connect to the local host. An absolute path to a UNIX domain socket can also be specified (portis ignored then).portβnumber. Port to connect to. Default is6600.passwordβstring. Server's password.timeoutβnumber. If specified and not negative, the number of seconds to wait before callingcbwithwhat="timeout"again (after a connection has been established). May be fractional.retry_inβnumber. Number of seconds to retry in after the connection is lost. A negative value means do not retry and return immediately. May be fractional. Defaults to10.retry_fifoβstring. Path to an existent FIFO. The plugin does not create the FIFO itself. To force a reconnect,touch(1)the FIFO, that is, open it for writing and then close.eventsβarray of strings. List of MPD subsystems to poll for changes in. See the description ofidlecommand athttps://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-statusfor the complete list. Default is{"mixer","player"}.
π CB ARGUMENT π
A table with a what entry.
- If
whatis"connecting", the plugin is now connecting to the server. - If
whatis"update", either the plugin has just connected to the server and queried its state, or the server has just changed its state. Additionally, the following entries are provided:songβ table with server's response to thecurrentsongcommand. Surprisingly, it is not documented at all, so here is an example (all values are strings):
βββββββββββββββββ¬βββββββββββββββββββββββ
β Key β Value β
βββββββββββββββββΌβββββββββββββββββββββββ€
β file β Sensou to Heiwa.mp3 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Last-Modified β 2016-07-31T09:56:31Z β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Artist β ALI PROJECT β
βββββββββββββββββΌβββββββββββββββββββββββ€
β AlbumArtist β ALI PROJECT β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Title β ζ¦δΊγ¨εΉ³ε β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Album β Erotic & Heretic β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Track β 8 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Date β 2002-02-20 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Genre β J-Pop β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Disc β 1/1 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Time β 260 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Pos β 0 β
βββββββββββββββββΌβββββββββββββββββββββββ€
β Id β 4 β
βββββββββββββββββ΄βββββββββββββββββββββββ
statusβ table with server's response to thestatuscommand. See thestatuscommand description athttps://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-status.
All values are strings.
- If
whatis"timeout", the server hasn't changed its state for the number of seconds specified as thetimeoutoption. - If
whatis"error", the connection has been lost; the plugin is now going to sleep and try to reconnect. This is only reported ifretry_inis non-negative.
π COPYRIGHT π
LGPLv3.
Cute sign-off bestie: the footer/source-version tag is luastatus-plugin-mpd(7) π. There's no separate date line on this page, so no invented date here β just that tag and the LGPLv3 copyright above π«Ά.
π¦ where this page comes from
- nixos 26.05: luastatus 0.6.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms