[xmonad] proposal: add extra screen parameter to runLayout

Mathias Stearn redbeard0531 at gmail.com
Wed Mar 26 11:12:24 EDT 2008


I could see this being useful if you have two monitors with one
rotated to tall mode (looks like a sideways T). It would make sense
for a given workspace to use a different layout if on the tall
monitor. Mayhaps a mirrorIfOnScreen n l layout modifyer.
On 3/26/08, Brent Yorgey <byorgey at gmail.com> 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
>
> _______________________________________________
>  xmonad mailing list
>  xmonad at haskell.org
>  http://www.haskell.org/mailman/listinfo/xmonad
>
>


More information about the xmonad mailing list