I am trying to find a function, that allows me to switch between XMonad-Layouts automatically depending on the amount of windows on the screen.
I have experienced similar behavior with the ifWider function, which does the same depending on the screen width. I doubt that there is a function for that in xmonad-contrib, so should I implement it myself? And how would I do that?