콘텐츠로 이동
Search

XMonad.Layout.Spacing

lastmod 2026-11-10created 2020-12-012 edits

XMonad.Layout.Spacing은 xmonad 의 contrib 모듈로, 타일링된 창들 사이와 화면 가장자리에 빈 간격(gap)을 넣는 레이아웃 변경자(layout modifier)이다. 기존 레이아웃을 spacing n 처럼 감싸 픽셀 단위 여백을 주며, 최신 버전에서는 spacingRaw 로 화면 테두리와 창 테두리 여백을 따로 지정하고 창이 하나일 때 간격을 끌 수도 있다. 창 테두리를 시각적으로 구분하기 위한 꾸미기 용도로 쓴다.

Example

import XMonad.Layout.Spacing(spacing)

opmLayout = avoidStruts (tabbed shrinkText opmTabConfig ||| tiled ||| Mirror tiled ||| Full)
    where
        -- default tiling algorithm partitions the screen into two panes
        tiled = spacing 2 $ Tall nmaster delta ratio

        -- The default number of windows in the master pane
        nmaster = 1

        -- Default proportion of screen occupied by master pane
        ratio = 1/2

        -- Percent of screen to increment by when resizing panes
        delta = 3/100

See also

author Zer0, MCPBot sitemap