mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-05 06:31:53 -07:00
add more details on using smartBorders
This commit is contained in:
@@ -43,6 +43,7 @@ import Data.List ((\\))
|
|||||||
-- borders
|
-- borders
|
||||||
--
|
--
|
||||||
-- > layouts = [ Layout (noBorders Full), ... ]
|
-- > layouts = [ Layout (noBorders Full), ... ]
|
||||||
|
--
|
||||||
|
|
||||||
-- %import XMonadContrib.NoBorders
|
-- %import XMonadContrib.NoBorders
|
||||||
-- %layout -- prepend noBorders to default layouts above to remove their borders, like so:
|
-- %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
|
ws = map fst wrs
|
||||||
singleton = null . drop 1
|
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 :: LayoutClass l a => l a -> ModifiedLayout SmartBorder l a
|
||||||
smartBorders = ModifiedLayout (SmartBorder [])
|
smartBorders = ModifiedLayout (SmartBorder [])
|
||||||
|
Reference in New Issue
Block a user