[xmonad] specific layout per workspace

Brent Yorgey byorgey at gmail.com
Mon Nov 19 14:13:41 EST 2007


On Nov 19, 2007 1:45 PM, Brent Yorgey <byorgey at gmail.com> wrote:

>
> On Nov 19, 2007 12:11 PM, Don Stewart <dons at galois.com> wrote:
>
> > lobzang:
> > > Hi guys,
> > >
> > > Is there any way to configure xmonad in order to have a custom layout
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/xmonad/attachments/20071119/58008950/attachment.htm


More information about the xmonad mailing list