类似于 tall 布局的布局,除了主区域 windows 在列中

A layout like the tall layout, except that master area windows are in columns

有没有办法创建类似于 tall 布局的布局,除了当您向主窗格添加更多 windows 时,它按列而不是行对它们进行排序?

我没有明确的答案,但我使用类似的东西来查看 PDF 文件,一列或两列,右侧有从属(如果有从属 windows)。

import XMonad.Layout.ResizableTile
import XMonad.Layout.GridVariants
...
myPDFLayout = myPDFLayout1 ||| myPDFLayout2
myPDFLayout1 = ResizableTall 1 (3/100) (7/8) []
myPDFLayout2 = SplitGrid L 1 2 (7/8) (16/10) (3/100)

随意添加更多列 - 我想 SplitGrid 也可以用于三列或更多列,请在 the documentation 中找到详细信息。 如果您还不知道,请查看 xmonad contribs,它们提供了很多不同的布局,例如上面的两个。

这些布局默认更改为 mod-Space。您可以将它们重新绑定到特定的工作区,例如

((modMask, xK_comma), bindOn [("PDF", sendMessage NextLayout)])

但据我所知,没有什么比 PrevLayout 更好的了,它会在布局中循环而不是停止。

编辑:我认为 SO 上有一个关于向后循环的线程,but i was wrong(虽然还没有阅读或测试过)