francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
896 stars 49 forks source link

-c option doesn't work if wob.ini exists #98

Closed 7ff04da4aa6ac37197e249299066ac30 closed 2 years ago

7ff04da4aa6ac37197e249299066ac30 commented 2 years ago

I don't know if this is intended behaviour, but I'd assume not, so here I am.

I have two instances of wob running: one for brightness and the other for volume. I like to have brightness represented horizontally and volume vertically, so I've been using #97 for this purpose.

For this to work, I have to supply wob with two configuration files. Initially, I thought that I could have a "default" configuration file, which would be the one stored in ~/.config/wob/wob.ini, and would simply have to reference another configuration file with the -c option if I needed wob to use another set of configurations.

This, however, is not the case. If wob.ini exists, passing the -c option and referencing a file results in the following message:

usage: wob [-c config]

If it does not exist, I can simply reference configuration files individually for each wob instance, which is what I've been doing, having wob-brightness.ini and wob-volume.ini.

This is no big issue, of course, but it took some time to figure out what was wrong. If possible, it would be better for the error message to be more precise about wob's requirements or to change how passing the -c option works alltogether.

francma commented 2 years ago

Thanks :+1:

Should be working now.