Skip to content
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

Split configuration variables to a config.h file. (suckless style) #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MouadCharradi
Copy link

This would allow for a separation between the configuration part and the logic part of bemenu.

Thanks

@MouadCharradi
Copy link
Author

I just start reading the bemenu codebase, maybe there are more configuration variables that I haven't seen yet. Maybe we could put those in the config file as well.

@Cloudef
Copy link
Owner

Cloudef commented Nov 21, 2023

Mostly the defaults in common.c perhaps (for bemenu and bemenu-run executable)

@MouadCharradi
Copy link
Author

I have move more values to config.h from bemenu.c and bemenu-run.c. I'm not sure if there are any default variables that are set in common, it seems to me that it just handles cli opts and changes behavior accordingly, but I might be wrong.

As for the warnings, I will try to find a way of getting rid of them (maybe through a flto option in the Makefile).
Let me know if I did anything wrong, or if there is anything else I should change or do, or even abandon this whole idea if it doesn't align with the project's vision.

Thanks. Mouad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants