gpt4 book ai didi

haskell - xmonad 垂直调整图 block /窗口的大小

转载 作者:行者123 更新时间:2023-12-04 01:04:03 26 4
gpt4 key购买 nike

我在左边有一些垂直堆叠的瓷砖,在右边有一些。我可以轻松地水平调整主 Pane 的大小(使用 mod + l mod + h ),但我想在此设置中垂直调整一些窗口(包括非主窗口)的大小.

我该怎么做呢??

最佳答案

我认为标准的 XMonad Tall 不可能做到这一点。布局,但其他布局,例如 ResizableTall 来自 xmonad-contrib支持调整主 Pane 的大小。

使用 ResizableTall 时调整主 Pane 的大小布局,绑定(bind)XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand)消息。

例如,在 my config我定义我的layoutHookkeys使用 ResizableTall带有两个主 Pane 和 Mod-M + 绑定(bind)到调整主 Pane 大小的箭头键,使用(简化)

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)
]

关于haskell - xmonad 垂直调整图 block /窗口的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25857674/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com