LUASTATUS-PLUGIN-MPD(7)

πŸ“¦
version 0.6.0 Β· 2 versions
, in nixos 26.05

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 (port is ignored then).
  • port β€” number. Port to connect to. Default is 6600.
  • password β€” string. Server's password.
  • timeout β€” number. If specified and not negative, the number of seconds to wait before calling cb with what="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 to 10.
  • 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 of idle command at https://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-status for the complete list. Default is {"mixer","player"}.

πŸ’… CB ARGUMENT πŸ’…

A table with a what entry.

  • If what is "connecting", the plugin is now connecting to the server.
  • If what is "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 the currentsong command. 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                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

All values are strings.

  • If what is "timeout", the server hasn't changed its state for the number of seconds specified as the timeout option.
  • If what is "error", the connection has been lost; the plugin is now going to sleep and try to reconnect. This is only reported if retry_in is non-negative.

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