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:
[x] hide vacant tags
[x] hidden
[x] bottom
[x] font [FONT]
[x] text color
[x] active color
[x] inactive color
[x] urgent text color
[x] urgent border color
[x] tags (names)
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?
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 inconfig.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 inconfig.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 sincedwlb
will fail to launch if each tag isn't named.I am unsure if having aTAGSLEN
unequal to 9 will cause the tags flag to fail?