davama

xmonad-current-layouts-with-gridvariants-2018-06-29

Jun 29th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gapper s = (gaps [(U, s), (R, s), (L, s), (D, s)]) . (spacing s)
  2. grid orientation s = gapper s $ G.SplitGrid orientation 1 1 (1/2) (16/9) (5/100)
  3.  
  4. --myLayoutHook = (avoidStruts (standardLayouts) ||| fullscreen)
  5. myLayoutHook = onWorkspace (myWorkspaces !! 8) (avoidStruts (imLayout) ||| avoidStruts (standardLayouts))
  6.              $ onWorkspace (myWorkspaces !! 7) (avoidStruts (gimpLayout) ||| avoidStruts (standardLayouts))
  7.              $ onWorkspace (myWorkspaces !! 3) (avoidStruts (tabbedLayout) ||| avoidStruts (standardLayouts))
  8.              $ onWorkspace (myWorkspaces !! 1) (avoidStruts (chatLayout) ||| avoidStruts (standardLayouts))
  9.          $ onWorkspaces ["DEV1","DEV2"] (avoidStruts (threeLayout) ||| avoidStruts (standardLayouts))
  10.              $ avoidStruts (standardLayouts) ||| fullscreen
  11.   where
  12.     --standardLayouts = named "+" (spacing myBorderSpace $ G.Grid (16/10)) -- grid
  13.     standardLayouts = named "+" (spacing myBorderSpace $ reflectHoriz $ G.Grid (16/10)) -- grid
  14.                     ||| named "TT" (grid G.T myBorderSpace) -- grid ; Top ; spacing
  15.                     ||| named "[]-" (grid G.L myBorderSpace) -- grid ; left ; spacing
  16.                     ||| named "_+_" (grid G.B myBorderSpace) -- grid ; bottom ; spacing
  17.                     ||| named "-[]" (grid G.R myBorderSpace) -- grid ; right ; spacing
  18.     tabbedLayout = named "Tab" $ (simpleTabbed)
  19.     fullscreen = named "[_]" (noBorders (fullscreenFull Full)) -- full
  20.     imLayout = named "IML" $ gridIM (1/5) (Title "Buddy List") -- for pidgin
  21.     chatLayout = named "IML" $ withIM 0.4 (Role "pop-up") $ reflectHoriz $ withIM 0.3 (Role "pop-up") (trackFloating (grid G.T 0)) -- pop-up is WhatApp and Google Hangouts; whoever opens first
  22.     gimpLayout = named "GimpL" $ withIM 0.2 (Role "gimp-dock") $ reflectHoriz $ withIM 0.3 (Role "gimp-dock") (trackFloating (grid G.T 0)) -- Gimp Layout
  23.     threeLayout = named "|||" $ (ThreeColMid 1 (3/100) (1/3))
Add Comment
Please, Sign In to add comment