Multiple specialisations simultaneously

Hello,

Is it possible to use multiple specializations simultaneously? I have two for my theme (dark and light) that change Stylix values, and a second pair (normal and zen) that defines rules for Hyprland. However, I would like to have any combination possible—such as dark-normal, dark-zen, light-normal, and light-zen—without having to write them all out. This is not easily achievable, especially if I decide to add more in the future.

What are the possible solutions? Is it feasible to activate multiple specialisations at the same time, perhaps in a 2x2 grid or later a 2x2x2 format to make selections?

What is your solution?

Check out lib.cartesianProduct - Nix function reference and lib.cartesianProductOfSets - Nix function reference

But no you can’t activate them simultaneously, afaik

1 Like

Thank you, indeed, mathematically it seems to be what I need, but would you mind showing me how I could use that with specialisations ? I don’t understand how I’m supposed to use it