mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-15 12:13:57 -07:00
Merge pull request #666 from geekosaur/665-spacing-avoidstruts-documentation
Document interaction of `avoidStruts` with the screen rectangle
This commit is contained in:
@@ -216,12 +216,18 @@ calcGap ss = do
|
|||||||
|
|
||||||
-- | Adjust layout automagically: don't cover up any docks, status
|
-- | Adjust layout automagically: don't cover up any docks, status
|
||||||
-- bars, etc.
|
-- bars, etc.
|
||||||
|
--
|
||||||
|
-- Note that this modifier must be applied before any modifier that
|
||||||
|
-- changes the screen rectangle, or struts will be applied in the wrong
|
||||||
|
-- place and may affect the other modifier(s) in odd ways. This is
|
||||||
|
-- most commonly seen with the 'spacing' modifier and friends.
|
||||||
avoidStruts :: LayoutClass l a => l a -> ModifiedLayout AvoidStruts l a
|
avoidStruts :: LayoutClass l a => l a -> ModifiedLayout AvoidStruts l a
|
||||||
avoidStruts = avoidStrutsOn [U,D,L,R]
|
avoidStruts = avoidStrutsOn [U,D,L,R]
|
||||||
|
|
||||||
-- | Adjust layout automagically: don't cover up docks, status bars,
|
-- | Adjust layout automagically: don't cover up docks, status bars,
|
||||||
-- etc. on the indicated sides of the screen. Valid sides are U
|
-- etc. on the indicated sides of the screen. Valid sides are 'U'
|
||||||
-- (top), D (bottom), R (right), or L (left).
|
-- (top), 'D' (bottom), 'R' (right), or 'L' (left). The warning in
|
||||||
|
-- 'avoidStruts' applies to this modifier as well.
|
||||||
avoidStrutsOn :: LayoutClass l a =>
|
avoidStrutsOn :: LayoutClass l a =>
|
||||||
[Direction2D]
|
[Direction2D]
|
||||||
-> l a
|
-> l a
|
||||||
|
@@ -91,6 +91,10 @@ import XMonad.Util.Types (Direction2D(..))
|
|||||||
--
|
--
|
||||||
-- To configure gaps differently per-screen, use
|
-- To configure gaps differently per-screen, use
|
||||||
-- "XMonad.Layout.PerScreen" (coming soon).
|
-- "XMonad.Layout.PerScreen" (coming soon).
|
||||||
|
--
|
||||||
|
-- __Warning__: If you also use the 'avoidStruts' layout modifier, it
|
||||||
|
-- must come /before/ any of these modifiers. See the documentation of
|
||||||
|
-- 'avoidStruts' for details.
|
||||||
|
|
||||||
-- | A manual gap configuration. Each side of the screen on which a
|
-- | A manual gap configuration. Each side of the screen on which a
|
||||||
-- gap is enabled is paired with a size in pixels.
|
-- gap is enabled is paired with a size in pixels.
|
||||||
|
@@ -96,6 +96,10 @@ import XMonad.Actions.MessageFeedback
|
|||||||
-- every direction.
|
-- every direction.
|
||||||
--
|
--
|
||||||
-- - @True@: Enable the 'windowBorder'.
|
-- - @True@: Enable the 'windowBorder'.
|
||||||
|
--
|
||||||
|
-- __Warning__: If you also use the 'avoidStruts' layout modifier, it
|
||||||
|
-- must come /before/ any of these modifiers. See the documentation of
|
||||||
|
-- 'avoidStruts' for details.
|
||||||
|
|
||||||
-- | Represent the borders of a rectangle.
|
-- | Represent the borders of a rectangle.
|
||||||
data Border = Border
|
data Border = Border
|
||||||
|
Reference in New Issue
Block a user