dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
358 stars 6 forks source link

need for more widgets #51

Closed benzwt closed 2 months ago

benzwt commented 2 months ago

Thanks to the command widget, I'm able to run an arbitrary action on zjstatus. For me, a single command widget is not enough; I run a conky to monitor my system, but I need to monitor the stock as well.

I have conceived two approaches

zjstatus-featureRequest drawio

dj95 commented 2 months ago

Hi and thanks for you suggestion.

How would this differ from the current behaviour with the command widget?

You can specify multiple command widgets, like command_conky and command_stock, analog to command_0 and command_1 in the plugin-dev-workspace.kdl. This way a user can basically use your first approach because you can specify one command per "plugin".

dj95 commented 2 months ago

I'll close this issue, as you are able to run multiple commands with several command_{{name}} widgets. Feel free to add any details, if I'm missing something.