[xmonad] how do I get a layout like this?
Brent Yorgey
byorgey at seas.upenn.edu
Tue Jan 27 16:38:08 EST 2009
On Thu, Jan 22, 2009 at 04:50:23AM +0100, Karl Hasselström wrote:
> On 2009-01-21 23:06:29 +0100, Karl Hasselström wrote:
>
> > Hmm, I'd like to do something like this, but cycle through the windows
> > that are currently not _visible_. I've looked through the
> > documentation, but I can't find any way to tell if a given window is
> > currently visible.
>
> OK, I got it working. With this, add
>
> Sliced 2 Nothing []
>
> to your layouts, and bind a suitable key to
>
> focusNextUnmapped
>
> and you're ready to go! At most two windows are shown at a time, and
> the focusNextUnmapped key will cycle through the hidden windows in the
> currently focused position, leaving the rest of the visible windows
> alone.
>
> I'll happily accept tips on making this code less ugly -- this is the
> first useful piece of Haskell code I've ever written ...
Cool, why not make this into a proper module and submit a patch? See
http://haskell.org/haskellwiki/Xmonad/xmonad_development_tutorial for
a tutorial on how to do this.
-Brent
More information about the xmonad
mailing list