2014-09-15 2 views
9

왼쪽에 세로로 쌓인 타일 몇 개와 오른쪽에 타일 몇 개가 있습니다. mod + lmod + h)을 가로로 쉽게 조정할 수 있지만이 설정에서 크기가 작은 창 (비 마스터 포함)의 크기를 조정하고 싶습니다.xmonad 세로 크기 조정 타일/창

어떻게해야합니까 ??

답변

10

표준 XMonad Tall 레이아웃에서는 가능하지 않지만 ResizableTallxmonad-contrib과 같은 대체 레이아웃은 마스터 창 크기를 조정할 수 있습니다.

ResizableTall 레이아웃을 사용할 때 마스터 창의 크기를 조정하려면 XMonad.Layout.ResizableTile (MirrorShrink, MirrorExpand) 메시지를 바인딩하십시오. 내 layoutHookkeys 두 개의 마스터 창으로 ResizableTall를 사용하여 정의하고, + Mod-M으로하는 사용하여 마스터 창 크기를 조정에 바인딩 화살표 키를 my config에 예를 들어

(간체)

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

은 [사항을 확인 할 수 'ResizableTall'] (http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-ResizableTile.html)은 수직 크기 조정을 위해 작동합니다. – ElDog

관련 문제