Only inner spacing in XMonad

Is it possible to only have spacing between tiles in XMonad, i.e. no spacing around them? The left-most tile would have no spacing to the left, the top-most ones no spacing to the top, etc. XMonad tiles with outer spacing

I haven't been able to find a suitable option for removing the outer spacing reading the documentation.
https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-Spacing.html
https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-Gaps.html

This is my current spacing config in xmonad.hs.

myConfig = def
    ...
    -- , layoutHook = smartSpacingWithEdge 10 $ myLayout
    , layoutHook = smartSpacing 10 $ myLayout
    ...

Edit: Testing @Ismore's solution.

This approach looks promising, but screen borders, window borders, and gaps seem to be totally independent. They are only additive; e.g, you can't negate the outer most window borders by setting the screen borders to 0. I'm not totally sure about the difference between gaps and screen borders, they seem to add spacing to the exact same place (a outer surrounding border).

Using this code,

testGaps = gaps [(U,20), (D,20), (L,20), (R,20)]
testSpace = spacingRaw True (Border 30 30 30 30) True (Border 40 40 40 40) True
expandedL = testSpace $ myLayout

I colored gap spacing green, screen borders blue, and window borders red. I don't which of gap and screen borders are outmost, here I put gaps (green) closest to the edge:

spacing and gaps

It seems like gaps, screen border and windows don't interact.



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)