[xmonad] Can I switch layouts based on number of windows in a workspace?

Jeffrey David Johnson jefdaj at gmail.com
Mon Aug 27 19:36:56 CEST 2012

Thanks, I'll read through this and try to figure it out when I get a 
chance (maybe later today). In the meantime I get a compile error:

jefdaj at acro:~/.xmonad$ ghc --make OnlyFor.hs
[1 of 1] Compiling XMonad.Layout.OnlyFor ( OnlyFor.hs, OnlyFor.o )
     `m' is applied to too many type arguments
     In the type signature for `onlyFor':
       onlyFor :: HowMany
                  -> m -> l a -> ModifiedLayout (OnlyFor (m a)) l a

If I comment out the type signature and load it in GHCI it guesses this:

   :: HowMany
      -> m
      -> l a
      -> XMonad.Layout.LayoutModifier.ModifiedLayout (OnlyFor m) l a

Does that look reasonable? m is One | Multiple, l is the LayoutModifier 
and a is the Layout right?

On 08/27/2012 08:28 AM, Brandon Allbery wrote:
> On Mon, Aug 27, 2012 at 11:12 AM, Brandon Allbery <allbery.b at gmail.com 
> <mailto:allbery.b at gmail.com>> wrote:
>     I've attached the current version; it compiles but is not tested
>     in practice.  It should be clear enough how to extend it to
>     support other values than One and Multiple.
> Except I forgot to actually attach it...
> -- 
> brandon s allbery allbery.b at gmail.com <mailto:allbery.b at gmail.com>
> wandering unix systems administrator (available)     (412) 475-9364 vm/sms

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120827/87b8deb8/attachment.htm>

More information about the xmonad mailing list