[英]xmonad vertical resize tile/window
I have a few vertically stacked tiles on the left, and some on the right. 我左边有几个垂直堆叠的瓷砖,右边有一些。 I can easily horizontally resize the master pane (with mod + l and mod + h ), but I'd like to vertically resize some windows (including non-master) in this setup.
我可以轻松地水平调整主窗格(使用mod + l和mod + h ),但我想在此设置中垂直调整某些窗口(包括非主窗口)的大小。
How do I do this?? 我该怎么做呢??
I don't think this is possible with the standard XMonad Tall
layout, but alternative layouts such as ResizableTall
from xmonad-contrib
support resizing the master pane. 我不认为使用标准的XMonad
Tall
布局是可行的,但是替代布局(例如xmonad-contrib
ResizableTall
支持调整主窗格的大小。
To resize the master pane when using the ResizableTall
layout, bind the XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand)
messages. 要在使用
ResizableTall
布局时调整主窗格的大小,请绑定XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand)
消息。
For example, in my config I define my layoutHook
and keys
to use ResizableTall
with two master panes, and with Mod-M
+ arrow keys bound to resizing the master panes, using (simplified) 例如,在我的配置中,我定义了我的
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.