diff --git a/xmonad.hs b/xmonad.hs index d1ab2b8..b400961 100755 --- a/xmonad.hs +++ b/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