bakkeby / dwm-flexipatch

A dwm build with preprocessor directives to decide which patches to include during build time
MIT License
1.15k stars 233 forks source link

Different colors for each tag #55

Closed plasmoduck closed 3 years ago

plasmoduck commented 3 years ago

How can I create seperate color schemes for each tag? Say all tags bg the same bug tag1 is red tag2 is green tag3 is yellow etc?

bakkeby commented 3 years ago

This is what sets the scheme for the tag by default, it can either be selected, urgent or (tags) normal. https://github.com/bakkeby/dwm-flexipatch/blob/master/patch/bar_tags.c#L51-L57

Instead of SchemeTagsNorm you could choose another scheme that depends on the variable i.

Let's say that you'd introduce your own schemes SchemeTagNormA, SchemeTagNormB, ..., SchemeTagNormI (in order) then you could replace that SchemeTagsNorm with SchemeTagNormA + i.

You could do the same with the selected color as well.

plasmoduck commented 3 years ago

Awesome! Thanks :)