-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1f56ade
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |