Skip to content

XMonad.Layout.Tabbed

A tabbed layout for the Xmonad Window Manager.

Example

import XMonad.Layout.Tabbed
import XMonad.Layout.SimpleDecoration(shrinkText)

opmTabConfig = def {
        activeColor         = "#556064",
        inactiveColor       = "#2F3D44",
        urgentColor         = "#FDF6E3",
        activeBorderColor   = "#454948",
        inactiveBorderColor = "#454948",
        urgentBorderColor   = "#268BD2",
        activeTextColor     = "#80FFF9",
        inactiveTextColor   = "#1ABC9C",
        urgentTextColor     = "#1ABC9C",
        fontName            = "xft:DroidSansMono Nerd Font:size=10:bold:antialias=true:hinting=true"
    }

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

  • xmonad
  • XMonad.Layout.SimpleDecoration

Favorite site