luc*_*sem 12 haskell window-managers xmonad
我左边有几个垂直堆叠的瓷砖,右边有一些.我可以轻松地水平调整主窗格(使用mod + l和mod + h),但我想在此设置中垂直调整某些窗口(包括非主窗口)的大小.
我该怎么做呢??
Dom*_*ese 10
我不认为这是可能的标准XMonad Tall布局,但替代的布局,如ResizableTall从xmonad-contrib支持调整主窗格.
要在使用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)
]
Run Code Online (Sandbox Code Playgroud)