Adapt layout to screen width
parent
9da2a4c443
commit
31f45fdff8
|
@ -105,12 +105,19 @@ myManageHook =
|
||||||
-- layoutHook
|
-- layoutHook
|
||||||
myLayoutHook =
|
myLayoutHook =
|
||||||
showWName' myShowWNameConfig $
|
showWName' myShowWNameConfig $
|
||||||
t ||| -- Tiled layouts
|
ifWider smallWidth (
|
||||||
c3 ||| -- Column layouts
|
t ||| -- Tiled layouts
|
||||||
c3m ||| --
|
c3 ||| -- Column layouts
|
||||||
f -- Monocle layouts
|
c3m ||| --
|
||||||
|
f -- Monocle layouts
|
||||||
|
) (
|
||||||
|
t ||| -- Tiled layouts
|
||||||
|
f -- Monocle layouts
|
||||||
|
)
|
||||||
where
|
where
|
||||||
t = renamed [Replace "[]+"] $ centeredIfSingle 0.8 0.9 $ Tall nmaster delta ratio
|
smallWidth = 1920
|
||||||
|
t = renamed [Replace "[]+"] $ ifWider smallWidth (centeredIfSingle 0.8 0.9 $ Tall nmaster delta ratio)
|
||||||
|
(Tall nmaster delta ratio)
|
||||||
c3 = renamed [Replace "|||"] $ ThreeCol nmaster delta ratio
|
c3 = renamed [Replace "|||"] $ ThreeCol nmaster delta ratio
|
||||||
c3m = renamed [Replace "[|]"] $ ThreeColMid nmaster delta ratio
|
c3m = renamed [Replace "[|]"] $ ThreeColMid nmaster delta ratio
|
||||||
f = renamed [Replace "[+]"] Full
|
f = renamed [Replace "[+]"] Full
|
||||||
|
|
Loading…
Reference in New Issue