-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: More flexible ~/.lifebarrc #10
Comments
Yeah absolutely, I was hoping that my simple implementation of a key-value store would suffice, but I can see that more flexibility would be good. Perhaps there is a standard format/config library out there. XML would probably be overkill, but JSON might be ok. However we might just as easily be able to implement our own format and parser. I was going to go with The "instance" loop (between lines 693 and 1040 on the current master) is where the iteration over each screen happens, a simple string comparison against One other point; I wanted lifebar to report any problems to stdout, using the BAD_MSG definition, rather than failing silently (as it does right now if the modules config line is missing). Maybe we should take this opportunity to move the config stuff over to a Anyway, I should be able to get back on with this in a week or so, lets make sure we add as much flexibilty to the config format as we will ever need, without making it difficult to parse, or worse, unreliable and buggy. Thanks for all the input and code :) |
json-c is very common if you want to parse JSON, I guess. But I think it's also ok to implement an own config style which suits lifebars needs.
👍 to move config parsing to config.c
I thought about setting default values to |
The configuration file of lifebar is not very flexible. To implement features like "multiple module lists for different screens" I think we need a more sophisticated configuration file.
I thought about something like that:
This would be the first step.
With this config style it should also be possible to have a more flexible configuration for the modules. This would be the second step.
Something like that:
What do you think of the idea or do you have another idea how to "design" the configratuon file?
The text was updated successfully, but these errors were encountered: