glazewm
glazewm copied to clipboard
[Feature Request] `exec` bar component
As of now, it is possible to pipe output from any program's stdout into a file and then open that file as a bar component. But doing so is cumbersome, and the program is completely independent from the wm, even though it's whole purpose is to provide data to the wm.
I propose an exec type component, which takes a command to run and shows the last line from its stdin. Line separator should be configurable, as well as the label. When the program stops, it should be restarted according to a configurable restart policy: never, always, or after some time.
This would greatly simplify creating custom components.
+1