Skip to content

Instantly share code, notes, and snippets.

@maxdeliso
Last active December 20, 2015 10:49
Show Gist options
  • Select an option

  • Save maxdeliso/6118115 to your computer and use it in GitHub Desktop.

Select an option

Save maxdeliso/6118115 to your computer and use it in GitHub Desktop.
simple xmonad config
-- Max DeLiso
-- xmonad config
import XMonad
import XMonad.Hooks.DynamicLog
import qualified Data.Map as M
main = xmonad =<< xmobar defaultConfig {
modMask = mod4Mask
, terminal = "urxvt"
, borderWidth = 3
, keys = \c -> mykeys c `M.union` keys defaultConfig c
}
where
mykeys (XConfig {modMask = modm}) = M.fromList $
[ ((modm , xK_x), spawn "xscreensaver-command -lock") ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment