
Hello XMonad world. There are two patches for xmonad-contrib. InRegion is a layout modifier. It runs underlying layout in restricted rectangle region. You specify that region with X,Y coordinates of top-left corner, and width, height of rectangle. All numbers are specified as parts of whole region (e.g., screen dimensions). So, "inRegion 0 0 1 1 someLayout" will just run someLayout as is. "inRegion 0.15 0 0.7 1 Full" will give you 15% margins at left and at right. IfMax layout is a "conditional layout". It runs one layout, if there are as maximum N windows, and otherwise it runs another layout. Example:
ifMax 2 Full (Tall ...) In this example, if there are 1 or 2 windows, Full layout will be used; otherwise, Tall layout will be used.
With best regards, Ilya Portnov.