mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
add more details on using smartBorders
This commit is contained in:
@@ -43,6 +43,7 @@ import Data.List ((\\))
|
||||
-- borders
|
||||
--
|
||||
-- > layouts = [ Layout (noBorders Full), ... ]
|
||||
--
|
||||
|
||||
-- %import XMonadContrib.NoBorders
|
||||
-- %layout -- prepend noBorders to default layouts above to remove their borders, like so:
|
||||
@@ -95,5 +96,11 @@ instance LayoutModifier SmartBorder Window where
|
||||
ws = map fst wrs
|
||||
singleton = null . drop 1
|
||||
|
||||
--
|
||||
-- | You can cleverly set no borders on a range of layouts, using a
|
||||
-- layoutHook like so:
|
||||
--
|
||||
-- > layoutHook = Layout $ smartBorders $ Select layouts
|
||||
--
|
||||
smartBorders :: LayoutClass l a => l a -> ModifiedLayout SmartBorder l a
|
||||
smartBorders = ModifiedLayout (SmartBorder [])
|
||||
|
Reference in New Issue
Block a user