Gaps configuration for xmonad
This commit is contained in:
parent
53495736e3
commit
16b6179d11
1 changed files with 10 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import XMonad.Hooks.StatusBar
|
||||||
import XMonad.Hooks.StatusBar.PP
|
import XMonad.Hooks.StatusBar.PP
|
||||||
import XMonad.Hooks.EwmhDesktops
|
import XMonad.Hooks.EwmhDesktops
|
||||||
import XMonad.Util.SpawnOnce (spawnOnce)
|
import XMonad.Util.SpawnOnce (spawnOnce)
|
||||||
|
import XMonad.Layout.Spacing
|
||||||
|
|
||||||
import Theme
|
import Theme
|
||||||
import NaturalGreenTheme
|
import NaturalGreenTheme
|
||||||
|
|
@ -19,6 +20,7 @@ myConfig = def { terminal = myTerminal
|
||||||
, focusedBorderColor = themeFocusedBorderColor myTheme
|
, focusedBorderColor = themeFocusedBorderColor myTheme
|
||||||
, normalBorderColor = themeBorderColor myTheme
|
, normalBorderColor = themeBorderColor myTheme
|
||||||
, startupHook = myStartupHook
|
, startupHook = myStartupHook
|
||||||
|
, layoutHook = spacingWithEdge myGapSize $ myLayoutHook
|
||||||
}
|
}
|
||||||
`additionalKeysP` myKeybindings
|
`additionalKeysP` myKeybindings
|
||||||
|
|
||||||
|
|
@ -29,6 +31,7 @@ myEmacs = "emacsclient -c -a 'emacs' "
|
||||||
myBrowser = "firefox"
|
myBrowser = "firefox"
|
||||||
myTheme = naturalGreenTheme
|
myTheme = naturalGreenTheme
|
||||||
myLauncher = "rofi -show run"
|
myLauncher = "rofi -show run"
|
||||||
|
myGapSize = 10
|
||||||
|
|
||||||
myStartupHook :: X ()
|
myStartupHook :: X ()
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
|
|
@ -46,3 +49,10 @@ myKeybindings = [ ("M-e", spawn myEmacs)
|
||||||
, ("M-q", spawn "xmonad --recompile; killall xmobar; xmonad --restart")
|
, ("M-q", spawn "xmonad --recompile; killall xmobar; xmonad --restart")
|
||||||
, ("M-d", spawn myLauncher)
|
, ("M-d", spawn myLauncher)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
myLayoutHook = tiled ||| Mirror tiled ||| Full
|
||||||
|
where
|
||||||
|
tiled = Tall nmaster delta ratio
|
||||||
|
nmaster = 1
|
||||||
|
ratio = 1/2
|
||||||
|
delta = 3/100
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue