[xmonad] proposal: add extra screen parameter to runLayout

Spencer Janssen sjanssen at cse.unl.edu
Wed Mar 26 14:14:38 EDT 2008


On Wed, Mar 26, 2008 at 10:37:48AM -0400, Brent Yorgey wrote:
> So, this morning I began hacking up gaps as a LayoutModifier in contrib.  I
> didn't get too far before I realized that in order to retain the same
> behavior as the current built-in gaps (*per screen* gap configuration), a
> layout needs to be able to know on which *screen* it is called!  This is the
> point at which I had a profound sense of deja vu, since of course we had the
> same issue with PerWorkspace, only with *screen* replaced by *workspace*.
> gah!
> 
> I think, however, this could be useful information for other potential
> layouts as well -- I don't have any particular examples in mind, but having
> layouts that can behave differently depending on which screen they're on
> sounds like it could be useful for more than just per-screen gaps.  So, I
> propose to add an extra screen parameter to runLayout and friends (which of
> course requires a bunch of trivial updates in contrib, unfortunately).  I'm
> happy to do all the work, but I wanted to throw this idea out there first
> and see what people think, whether anyone has any better ideas, and so on.
> 
> -Brent

Why bother with implementing the manual gap semantics as a layout?  I'm
planning on replacing gaps with avoidStruts -- can you demonstrate any
advantages of manual gaps over avoidStruts?


Cheers,
Spencer Janssen


More information about the xmonad mailing list