LUASTATUS-PLUGIN-PIPE(7)

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

πŸŽ€ Name πŸŽ€

okay bestie, this is luastatus-plugin-pipe β€” the process output reader plugin for luastatus, straight out of the Miscellaneous Information Manual. We're so back. πŸ’–

✨ Overview ✨

So this derived plugin lowkey monitors the output of a process and calls the callback function whenever it produces a line. That's the whole vibe check: process speaks, callback gets the line. πŸ¦‹

🌸 Functions 🌸

The following functions are provided, and yes they ate:

  • shell_escape(x) β€” if x is a string, escapes it as a shell argument; if x is an array of strings, escapes them and then joins by space. Shell-safe and slaying. πŸ’…
  • widget(tbl) β€” constructs a widget table required by luastatus. tbl is a table with the following fields:

βœ… required

  • command: string β€” the /bin/sh command to spawn. No cap, that's the command bestie. πŸ”₯
  • cb: function β€” the callback that will be called with a line produced by the spawned process each time one is available. Every line is main character energy. πŸ‘‘

🌈 optional

  • on_eof: function β€” callback to be called when the spawned process closes its stdout. Default is to simply hang to prevent busy-looping forever.
Default on_eof behavior is literally to just hang β€” that's intentional, to prevent busy-looping forever. Don't come for her. πŸ’€
  • event β€” the event entry of the resulting table (see luastatus documentation for the description of widget.event field). iykyk. 🧚

LGPLv3 β€” that's the license, periodt. 🫢


cute sign-off bestie: the footer stamp on this copy is luastatu...ugin-pipe(7), and there's no extra source/version or date spelled out beyond that. πŸ’–βœ¨

πŸ“¦ where this page comes from