
1 patch for repository http://code.haskell.org/XMonadContrib: Sun Aug 19 12:11:07 EDT 2012 allbery.b@gmail.com * XMonad.Layout.OnlyFor This layout modifier allows another layout modifier to be applied only when a single window or only when multiple windows are visible. (The case where no windows are visible is vacuous since layouts are irrelevant.) Rough usage: import XMonad.Layout.OnlyFor, then use as a layout modifier myLayouts = OnlyFor Multiple (Spacing 3) $ Tall ||| Mirror Tall ||| Full gives you a Spacing 3 modifier unless there is only one window visible. This has been sitting around in my local tree for about a year, after I wrote it for someone on #xmonad; it has vanished from hpaste since then and I never got around to submitting it to -contrib.

On 19 August 2012 12:15,
1 patch for repository http://code.haskell.org/XMonadContrib:
Sun Aug 19 12:11:07 EDT 2012 allbery.b@gmail.com * XMonad.Layout.OnlyFor This layout modifier allows another layout modifier to be applied only when a single window or only when multiple windows are visible. (The case where no windows are visible is vacuous since layouts are irrelevant.)
Rough usage: import XMonad.Layout.OnlyFor, then use as a layout modifier
myLayouts = OnlyFor Multiple (Spacing 3) $ Tall ||| Mirror Tall ||| Full
gives you a Spacing 3 modifier unless there is only one window visible.
This has been sitting around in my local tree for about a year, after I wrote it for someone on #xmonad; it has vanished from hpaste since then and I never got around to submitting it to -contrib.
[...]
Interesting module :), thanks for your work. Regards, -- Pablo Olmos de Aguilera Corradini - @PaBLoX http://www.glatelier.org/ http://about.me/pablox/ http://www.linkedin.com/in/pablooda/ Linux User: #456971 - http://counter.li.org/

On Sun, Aug 19, 2012 at 12:15 PM,
This has been sitting around in my local tree for about a year, after I wrote it for someone on #xmonad; it has vanished from hpaste since then and I never got around to submitting it to -contrib.
So no one's actually using this code? -- gwern http://www.gwern.net

On Sun, Aug 19, 2012 at 1:18 PM, Gwern Branwen
On Sun, Aug 19, 2012 at 12:15 PM,
wrote: This has been sitting around in my local tree for about a year, after I wrote it for someone on #xmonad; it has vanished from hpaste since then and I never got around to submitting it to -contrib.
So no one's actually using this code?
Someone was at one point, but your point is taken; we're finding a type issue with it that I vaguely recall being an attempt to work around some ancient ghc weirdness that no longer applies, related to it insisting the declaration of onlyFor and the declaration of the LayoutModifier instance looking the same (which overconstrains it so it won't work when used in a chain with something else; removing the overconstraint works with current ghc). Forget this patch and I'll resubmit when we have it working again. (I can't test it locally beyond compiling it, yet; my environment is a complete mess.) -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (4)
-
allbery.b@gmail.com
-
Brandon Allbery
-
Gwern Branwen
-
Pablo Olmos de Aguilera C.