LUASTATUS-BARLIB-STDOUT(7)
β¨ 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)".
π COPYRIGHT π
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
- 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