Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
emoney17 committed Mar 23, 2023
0 parents commit 1f56ade
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions xmonad.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import XMonad

-- Basics
import XMonad.Util.EZConfig
import XMonad.Util.Ungrab

-- Layouts
import XMonad.Layout.ThreeColumns
import XMonad.Layout.Magnifier

main :: IO ()
main = xmonad $ def
{ modMask = mod4Mask -- Change mod key
, layoutHook = myLayout -- Use custom layout
}
`additionalKeysP`
[ ("M-b", spawn "firefox")
, ("M-s", unGrab *> spawn "scrot -s")
]

myLayout = tiled ||| Mirror tiled ||| Full ||| threeCol
where
threeCol = magnifiercz' 1.3 $ ThreeColMid nmaster delta ratio -- Magnification on threeCol
-- threeCol = ThreeColMid nmaster delta ratio
tiled = Tall nmaster delta ratio
nmaster = 1 -- Number of masters
ratio = 1/2 -- Proportion
delta = 3/100 -- Pecent to increment when resizing

0 comments on commit 1f56ade

Please sign in to comment.