I went through a good amount of the scripts available and I cannot seem to find a good method for this. I have three profiles loaded in DisplayFusion, one profile splits a 4k tv into 4 equal screens and the other two toggle a left or right vertical split (three splits total). What I need is a way to automatically resize each window on each screen (that is already maximized) to fit the screen its current over when the profile changes. Currently I have to change profile, minimize the window, then maximize the window to fit the split.
You could try to save a window position profile for each layout, and then attach it to the monitor profiles so they automatically load when the profile does.