Run macro for all windows

This may not be what you want, or maybe it is just another "type", but here's another macro you can use as a guide:

MACRO: Cascade All Windows for An App V2 [Example]

You could create a separate macro (I call them "Sub-Macros") for each type of window arrangement, and then call the sub-macro you want using a Execute a Macro action.