Fix shrink/grow bug
This commit is contained in:
parent
cf78d0a900
commit
ab8e2390e0
1 changed files with 6 additions and 4 deletions
10
xmonad.hs
10
xmonad.hs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue