kolunmi / dwlb

Feature-Complete Bar for DWL
Other
64 stars 21 forks source link

Configuration #1

Closed podit closed 1 year ago

podit commented 1 year ago

Break out configurable defaults to a separate header file, such that they are easier to set to keep with the suckless philosophy. The necessary Makefile changes have been made to generate config.h should it not exist, such that it can be included.

All those that are unambiguously configuration options have been broken out into config.def.h, though there are some which either don't have obviously set values and others which seem to not be configurable. Some guidance on changes to how this is all structured is welcome.

Additionally there are TODOs marking areas where I was unsure about the use or nature of some properties, those in dwlb.c are the ones where an answer is required - I will look into the TODO in config.def.h now regarding how a hex color code should be translated to the color spec for pixman. edit: I have found the parse_color function which has only confused me further.

A list of configurable options listed in the usage instruction which have been moved into config.def.h:

TAGSLEN has been included in config.def.h even though it is not directly configurable, since more tags than tagslen will cause them not to be displayed. Additionally I have mentioned that each tag needs a name since dwlb will fail to launch if each tag isn't named.

I am unsure if having a TAGSLEN unequal to 9 will cause the tags flag to fail?