LUASTATUS-PLUGIN-ALSA(7)

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

🌸 NAME 🌸

okay bestie, welcome to luastatus-plugin-alsa(7) β€” it's from the Miscellaneous Information Manual, and it's literally the ALSA plugin for luastatus πŸ’…

✨ OVERVIEW ✨

bestie, this plugin monitors the volume and mute state of an ALSA channel. that's the whole vibe. no cap.

πŸ’… OPTIONS πŸ’…

The following options are supported:

  • card β€” string. Card name, defaults to "default" ✨
  • channel β€” string. Channel name, defaults to "Master" πŸŽ€
  • in_db β€” boolean. Whether or not to report normalized volume (in dBs) 🌸
  • capture β€” boolean. Whether or not this is a capture stream, as opposed to a playback one. Defaults to false πŸ’–
  • timeout β€” number. If specified and not negative, this plugin will call cb with nil argument whenever the channel does not change its state in timeout seconds since the previous call to cb ⭐
  • make_self_pipe β€” boolean. If true, the wake_up() (see the Functions section) function will be available. Defaults to false πŸ¦‹
okay so the timeout move only applies when it's specified and not negative β€” that's the exact condition, bestie, no extra lore πŸ™ˆ

🫢 cb argument 🫢

On timeout, nil (if the timeout option has been specified).

Otherwise, the argument is a table with the following entries:

  • mute β€” boolean. Whether or not the playback switch is turned off.

(Only provided if the channel has the playback switch capability.) πŸ’€

  • vol β€” table with the following entries:
    • cur, min, max β€” numbers. Current, minimal and maximal volume levels, correspondingly.

(Only provided if the channel has the volume control capability.) πŸ”₯

πŸ¦‹ FUNCTIONS πŸ¦‹

The following functions are provided:

  • wake_up() β€” Forces a call to cb.

Only available if the make_self_pipe option was set to true; otherwise, it throws an error 😭

LGPLv3 πŸ‘‘


okay that's the whole page, bestie πŸ’– the original footer just repeats luastatu...ugin-alsa(7) β€” no extra source/version or date line is listed there, so this is your cute sign-off instead: luastatus-plugin-alsa(7) πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from