Created
March 30, 2009 16:53
-
-
Save anotherjesse/87865 to your computer and use it in GitHub Desktop.
my simplistic xmonad
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
module Main (main) where | |
import XMonad | |
import System.Exit | |
import qualified Data.Map as M | |
import Graphics.X11.Xlib | |
import XMonad.Prompt | |
import XMonad.Prompt.Shell | |
import XMonad.Prompt.XMonad | |
import XMonad.Prompt.RunOrRaise | |
myModMask = mod4Mask -- "windows key" | |
myNormalBorderColor = "#000000" | |
myFocusedBorderColor = "#ff0000" | |
myBorderWidth = 2 | |
main :: IO () | |
main = xmonad $ defaultConfig { | |
normalBorderColor = myNormalBorderColor, | |
focusedBorderColor = myFocusedBorderColor, | |
keys = newKeys, | |
modMask = myModMask, | |
borderWidth = myBorderWidth | |
} | |
newKeys x = M.union (keys defaultConfig x) (M.fromList (myKeys x)) | |
myKeys x = | |
[ ((modMask x, xK_o), runOrRaisePrompt defaultXPConfig) ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment