
On Thursday 06 September 2007 10:57:41 David Roundy wrote:
Hi all,
This function actually could go into xmonad proper, but I'd rather not write that patch until there's a consensus that it's a good idea. This is just a layout that allows you to select between several layouts. Naturally, it's designed to be the "only" layout, so that it handles all layout switching.
Besides the ordinary forward and backward rotation of layouts, it allows you to jump directly to named layouts. More features could be added. An obvious one would be to dynamically add and remove layouts from particular workspaces (e.g. I may never want my iceweasel workspace to be anything but full and tabbed).
If this is moved into mainline xmonad, it would mean that we could eliminate the ugly (Layout Window, [Layout Window]) in favor of a simple (Layout Window).
Incidentally, what drove me to write this was not a cleanup (which would be a good reason), but wanting to have layout modifiers apply to all layouts with a single state shared. My workspaceDir state was getting messed up every time I changed layouts (which is pretty often now that I use VNC with different size screens).
Anyhow, thoughts or recommendations are welcome.
David
Thu Sep 6 11:49:55 EDT 2007 David Roundy
* add LayoutChoice module.
Applied, thanks. I'd like to move this into mainline xmonad at the same time we fix layout serialization and move layouts from XState to StackSet. Cheers, Spencer Janssen