Ich glaube nicht, dass dies mit dem Standard XMonad Tall
Layout möglich ist, aber alternative Layouts wie ResizableTall
von xmonad-contrib
unterstützen die Anpassung der Größe des Master-Bereichs.
Um die Größe des Masterbereichs bei Verwendung des ResizableTall
Layouts zu ändern, binden Sie die Nachrichten XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand)
.
Zum Beispiel in my config definiere ich meine layoutHook
und keys
ResizableTall
mit zwei Master-Scheiben zu verwenden, und mit Mod-M
+ Pfeiltasten gebunden, um die Master-Scheiben Ändern der Größe, mit (vereinfacht)
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 [email protected](XConfig {XMonad.modMask = modm}) =
[ ((modm, xK_Left), sendMessage MirrorExpand)
, ((modm, xK_Up), sendMessage MirrorExpand)
, ((modm, xK_Right), sendMessage MirrorShrink)
, ((modm, xK_Down), sendMessage MirrorShrink)
]
kann bestätigen, dass [ 'ResizableTall'] (http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-ResizableTile.html) funktioniert für die vertikale Größenänderung. – ElDog