[英]xmonad vertical resize tile/window
我左边有几个垂直堆叠的瓷砖,右边有一些。 我可以轻松地水平调整主窗格(使用mod + l和mod + h ),但我想在此设置中垂直调整某些窗口(包括非主窗口)的大小。
我该怎么做呢??
我不认为使用标准的XMonad Tall
布局是可行的,但是替代布局(例如xmonad-contrib
ResizableTall
支持调整主窗格的大小。
要在使用ResizableTall
布局时调整主窗格的大小,请绑定XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand)
消息。
例如,在我的配置中,我定义了我的layoutHook
和keys
以使用带有两个主窗格的ResizableTall
,并使用Mod-M
+箭头键来调整主窗格的大小,使用(简化)
main = xmonad gnomeConfig
{ layoutHook = Full ||| tall ||| Mirror tall
, keys = myKeys
}
where
-- Two master panes, 1/10th resize increment, only show master
-- panes by default. Unlike plain 'Tall', this also allows
-- resizing the master panes, via the 'MirrorShrink' and
-- 'MirrorExpand' messages.
tall = ResizableTall 2 (1/10) 1 []
-- Add bindings for arrow keys that resize master panes.
myKeys x = M.fromList (newKeys x) `M.union` keys gnomeConfig x
newKeys conf@(XConfig {XMonad.modMask = modm}) =
[ ((modm, xK_Left), sendMessage MirrorExpand)
, ((modm, xK_Up), sendMessage MirrorExpand)
, ((modm, xK_Right), sendMessage MirrorShrink)
, ((modm, xK_Down), sendMessage MirrorShrink)
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.