LUASTATUS-BARLIB-STDOUT(7)

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

✨ NAME ✨

hii bestie πŸ’– this is luastatus-barlib-stdout(7) β€” the stdout barlib for luastatus β€” and it lives in the Miscellaneous Information Manual. It's giving simple output, no drama and honestly? slay.

🌈 OVERVIEW 🌈

This barlib simply writes lines to a file descriptor. Bestie, that's the whole bit. πŸŽ€

It can be used for status bars such as dzen/dzen2, xmobar, yabar, dvtm, and others. Iconic lineup, no cap. πŸ‘‘

It joins all non-empty strings returned by widgets by a separator, which defaults to " | ". The separator is lowkey the main character energy of the spacing situation. ✨

It does not provide functions and does not support events. Nope, not those vibes. πŸ™ˆ

πŸ¦‹ REDIRECTIONS AND luastatus-stdout-wrapper πŸ¦‹

Since we need to write to stdout, it is very easy to mess things up: Lua's print() prints to stdout, processes spawned by widgets/plugins inherit our stdin and stdout, etc. It's giving chaos potential fr fr, iykyk. 😭

That's why this barlib requires that the stdout file descriptor is manually redirected. A shell wrapper, luastatus-stdout-wrapper, is shipped with it; it does all the redirections needed and executes luastatus with -b stdout and additional arguments passed by you. The wrapper literally ate the redirection task and is the responsible friend here. 🫢

bestie, do not skip the redirection situation β€” the barlib requires that the stdout file descriptor is manually redirected, and the wrapper is shipped to do all the redirections needed for you. πŸ’…

πŸ’… CB RETURN VALUE πŸ’…

Either of:

  • a string β€” an empty string hides the widget.
  • an array of strings β€” equivalent to returning a string with all non-empty elements of the array joined by the separator.
  • nil β€” hides the widget.

No surprises, just three return-value moods. πŸ’–

🌸 OPTIONS 🌸

The following options are supported:

  • out_fd=<fd> β€” file descriptor to write to. Usually set by the wrapper.
  • separator=<string> β€” set the separator.
  • error=<string> β€” set the content of an "error" segment. Defaults to "(Error)".

LGPLv3 β€” periodt. πŸ’œ


okay byeee πŸ‘‹ that's the page! the footer source/version and date info lives at the very end in the original manpage metadata, and this luastatus-barlib-stdout(7) sign-off is sending you off with all the cute metadata energy πŸ’–βœ¨

πŸ“¦ where this page comes from