[xmonad] Getting layout combinators the right way around

Toby Cubitt tsc25 at cantab.net
Mon May 3 16:11:31 EDT 2010


Hi,

I've been trying to produce a layout that works something like
TwoPane/DragPane (I don't really understand the difference between these
two), but with tabs for the slave windows. I.e. if there's only one
window, it takes up the full screen; if there are two windows, the master
window is always in the left pane, the slave on the right; if there are
more than two windows, the master is on the left, one slave is displayed
on the right, and there are tabs (as in e.g. simpleTabbed) showing the
slave windows.

I've achieved something very close to what I want using:

  reflectHoriz $ combineTwo (TwoPane 0.03 0.5) simpleTabbed Full

I needed the reflectHoriz because with 

  combineTwo (TwoPane 0.03 0.5) Full simpleTabbed

hidden slave windows ended up in the left pane, rather than appearing as
tabs in the right pane. But the (minor) annoyance with using reflectHoriz
is that the focusDown/focusUp and Shrink/Expand key bindings go the
opposite way to every other workspace (I use PerWorkspace layouts, so
simply switching the bindings won't work).

Somehow I feel I'm missing something, and it should be possible to
achieve this without the reflectHoriz. Is there a better way?

Thanks,

Toby
-- 
Dr T. S. Cubitt
Quantum Information Theory group
Department of Mathematics
University of Bristol
United Kingdom

email: tsc25 at cantab.net
web: www.dr-qubit.org


More information about the xmonad mailing list