MaxVerevkin / i3bar-river

A port of i3bar for wlroots-based compositors
GNU General Public License v3.0
39 stars 5 forks source link

Allow passing config file path to command #16

Closed triallax closed 1 year ago

triallax commented 1 year ago

With swaybar, I have both a top and a bottom bar on the same screen, which I achieve by having multiple bar configs. This doesn't seem to be possible with i3bar-river, so I think it would be nice to allow passing a path to the config file to use, like so: i3bar-river -c ~/.config/i3bar-river/config-bottom.toml.

triallax commented 1 year ago

Bonus: allow "including" another .toml file (whether from the config file itself or from the command line), so that the common configuration can be shared between bars.

MaxVerevkin commented 1 year ago

Implemented in d1fe8e5.

allow "including" another .toml file (whether from the config file itself or from the command line)

TBH this seems a bit overkill, at least for now.

triallax commented 1 year ago

Wow, I didn't expect this to get implemented that fast. Cheers!

TBH this seems a bit overkill, at least for now.

Maybe, I just thought I should throw it out anyway since it came to mind. It's a bit inconvenient to have to duplicate options between config files, but I can live with it.

MaxVerevkin commented 1 year ago

You may have a script which assembles your two configs from three parts, but I don't know how (in)convenient that would be.