import XMonad.Layout.Reflect
-- Necessary for avoidMaster.
import qualified XMonad.StackSet as W
+-- Necessary for smartBorders.
+import XMonad.Layout.NoBorders
-- Prevent new windows from spawning in the master pane. Taken from
--
-- The master pane is at the bottom of the screen (reflectVert). To make sure
-- new windows don't spawn in the master pane avoidMaster (see below) is used.
+-- Borders are only drawn when the screen has more then one window
+-- (smartBorders).
--
-- Thanks to jrick in #xmonad on Freenode (2009-06-29 22:19) for telling me
-- how to remove the vertical tiled layout.
-myLayoutHook = reflectVert $ Mirror tiled ||| Full
+myLayoutHook = smartBorders $ reflectVert $ Mirror tiled ||| Full
where
-- Default tiling algorithm partitions the screen into two panes.
tiled = Tall nmaster delta ratio