[Xmonad] darcs patch: add LayoutChoice module.

David Roundy droundy at darcs.net
Thu Sep 6 11:57:41 EDT 2007

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

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.


Thu Sep  6 11:49:55 EDT 2007  David Roundy <droundy at darcs.net>
  * add LayoutChoice module.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 47448 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/xmonad/attachments/20070906/64b6443f/attachment-0001.bin

More information about the Xmonad mailing list