Last active
January 31, 2017 17:53
-
-
Save gilbertw1/d48610226cec5ffb0d9050d51a64a466 to your computer and use it in GitHub Desktop.
gaps + spaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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