Skip to content

Instantly share code, notes, and snippets.

@reality
Created April 18, 2011 14:32
Show Gist options
  • Save reality/925462 to your computer and use it in GitHub Desktop.
Save reality/925462 to your computer and use it in GitHub Desktop.
My XMonad config file.
import XMonad
import Data.Monoid
import System.Exit
import XMonad.Hooks.SetWMName
import qualified XMonad.StackSet as W
import qualified Data.Map as M
myTerminal = "terminator"
myFocusFollowsMouse :: Bool
myFocusFollowsMouse = True
myBorderWidth = 1
myModMask = mod4Mask
myNumlockMask = mod2Mask
myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
myNormalBorderColor = "#dddddd"
myFocusedBorderColor = "#ff0000"
myEventHook = mempty
myLogHook = return ()
myStartupHook = setWMName "LG3D"
main = xmonad defaults
defaults = defaultConfig {
terminal = myTerminal,
focusFollowsMouse = myFocusFollowsMouse,
borderWidth = myBorderWidth,
modMask = myModMask,
numlockMask = myNumlockMask,
workspaces = myWorkspaces,
normalBorderColor = myNormalBorderColor,
focusedBorderColor = myFocusedBorderColor,
handleEventHook = myEventHook,
logHook = myLogHook,
startupHook = myStartupHook
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment