barista
barista copied to clipboard
Feature request: render/raw mode
Some secondary mode to render the json to stdout would be nice.
Then the bar could be integrated into terminal based solutions like a kitty panel or tmux pane etc.
I'm not sure if this is out of scope and might be better suited as a separate project.
(Just using a second program to interpret the json output would seem like a huge waste, though)
This makes sense to me. I think there's probably enough to warrant a breaking change now (especially with generics, which bizarrely was not a golang breaking change 🤷), which would give me an opportunity to revisit how the bar outputs.
Currently the format functions have direct control over the output, but I've been considering an intermediate representation so that themes could work even with user customisations (e.g. an output could be a set of "segments", each segment might have a "primary colour", "secondary colour", "icon", "gauge", etc., and themes would present as much as they can).
That would make a simpler stdout version much simpler as well, where the output could be ansi colours instead of pango markup too. (Icons become trickier, but with nerdfonts something might be feasible if complicated).