Created
June 3, 2016 09:23
-
-
Save dbalan/573a55c5cff29392c979d65b301fbbee to your computer and use it in GitHub Desktop.
Config for xmonad to play nice with gnome.
This file contains hidden or 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
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Util.Run | |
import XMonad.Util.EZConfig | |
-- rewrite the start progs | |
startProgs prgs = mapM_ (\(cmd,args) -> safeSpawn cmd args) prgs | |
initProgs = [ ("setxkbmap", ["-option", "ctrl:nocaps"]) | |
, ("emacs", ["--daemon"]) | |
, ("diodon", []) | |
] | |
main = do | |
xmonad $ gnomeConfig | |
{ terminal = "gnome-terminal" | |
, modMask = mod4Mask | |
, focusFollowsMouse = False | |
, borderWidth = 2 | |
, startupHook = do | |
startupHook gnomeConfig | |
startProgs initProgs | |
} | |
`additionalKeysP` | |
[ ("M-x b", safeSpawn "google-chrome" []) | |
, ("M-x e", safeSpawn "emacsclient" ["-c"]) | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment