
On Nov 19, 2007 1:45 PM, Brent Yorgey
On Nov 19, 2007 12:11 PM, Don Stewart
wrote: Hi guys,
Is there any way to configure xmonad in order to have a custom layout
lobzang: per
workspace, for exemple : workspace 1 (xterm) : Layout $ Mirror tiled workspace 2 (web) : Layout Full workspace 3 (icq) : Layout tiled
This is a great idea, I wonder why we haven't thought of it before! There /must/ be a way to do it. Anyone have some thoughts?
Hmm, it seems like it would be possible to create a LayoutClass instance for something like (WorkspaceId -> Layout Window), which does layout by first getting the state from the X monad and using the current workspace id to select the layout to use. Perhaps I'll take a crack at it, unless someone thinks this isn't a good idea for some reason.
I just realized this would cause major problems for serializing layout state! Perhaps a Map from WorkspaceId to Layouts would work -- slightly less flexible, but it would work with serialization/layout preservation across restarts. Anyone have any comments/thoughts? -Brent