Created
July 10, 2019 17:20
-
-
Save emptyflask/896b82bdb1ea1fe1ce6500c18b3aae29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Layout (myLayoutHook) where | |
import XMonad.Layout | |
import XMonad.Layout.BinarySpacePartition | |
import XMonad.Layout.BorderResize | |
import XMonad.Layout.NoBorders | |
import XMonad.Layout.ResizableTile | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.ThreeColumns | |
myLayoutHook = threeCol ||| bsp | |
where | |
threeCol = withBorders $ ThreeColMid 1 (2/100) (1/2) | |
bsp = withBorders' $ borderResize emptyBSP | |
withBorders = smartBorders . defaultSpacing 4 | |
withBorders' = smartBorders . defaultSpacing 4 -- both layouts using the same withBorders function causes a type error | |
defaultSpacing i = spacingRaw True (uniformBorder i) True (uniformBorder i) True | |
uniformBorder i = Border i i i i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's more to the file, so these line numbers are off, but here's the type error: