Fix shrink/grow bug

This commit is contained in:
Martin Potier 2017-12-11 13:30:50 +02:00
parent cf78d0a900
commit ab8e2390e0
1 changed files with 6 additions and 4 deletions

View File

@ -81,7 +81,7 @@ lh = do
myConfig = desktopConfig
{ modMask = mod4Mask -- Use the "Win" key for the mod key
, manageHook = myManageHook <+> manageHook desktopConfig
, layoutHook = desktopLayoutModifiers $ myLayouts
, layoutHook = desktopLayoutModifiers myLayouts
, logHook = lh
, terminal = "/run/current-system/sw/bin/kitty"
, workspaces = wkspcs
@ -118,10 +118,12 @@ myConfig = desktopConfig
| (tag, key) <- zip wkspcs [ xK_F1 .. ]
, (mask, actionWith) <- zip [ 0, shiftMask ] [ W.view, W.shift ] ]
myLayouts = smartBorders $ toggleLayouts (noBorders Full) others
myLayouts = toggleLayouts fullscreen tiled
where
resizableTall = ResizableTall 1 (2 % 1) (1/2) []
others = smartSpacingWithEdge 5 $ resizableTall ||| (Mirror resizableTall)
fullscreen = (noBorders Full)
tiled = smarts $ resizableTall ||| (Mirror resizableTall)
smarts = (smartSpacingWithEdge 5) . smartBorders
resizableTall = ResizableTall 1 (5/100) (1/2) []
myXPConfig = def
{ position = Top