Skip to content

Instantly share code, notes, and snippets.

@gilbertw1
Last active January 31, 2017 17:53
Show Gist options
  • Save gilbertw1/d48610226cec5ffb0d9050d51a64a466 to your computer and use it in GitHub Desktop.
Save gilbertw1/d48610226cec5ffb0d9050d51a64a466 to your computer and use it in GitHub Desktop.
gaps + spaces
myLayout = smartBorders $ avoidStruts $ minimize (mkToggle (NOBORDERS ?? FULL ?? EOT) (tiled ||| Mirror tiled ||| Full))
where
-- default tiling algorithm partitions the screen into two panes
-- tiled = gaps [(U,5), (R,5), (L,5), (D,5)] $ spacing 5 $ Tall nmaster delta ratio
tiled = 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
import XMonad
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
main = xmonad $ defaultConfig
{ borderWidth = 2,
focusedBorderColor = "#af4123",
normalBorderColor = "#191919",
layoutHook = gaps [(U,5), (R,5), (L,5), (D,5)] $ spacing 5 $ Tall 1 (6/100) (1/2) }
import XMonad
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
myLayout = gaps [(U,5), (R,5), (L,5), (D,5)] $ spacing 5 $ (tiled ||| Mirror tiled ||| Full)
where
-- default tiling algorithm partitions the screen into two panes
tiled = 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
main = xmonad $ defaultConfig
{ borderWidth = 2,
focusedBorderColor = "#af4123",
normalBorderColor = "#191919",
layoutHook = myLayout }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment