view .xmonad/xmonad.hs @ 248:e703696d4df5

emacs bootstrap: moved my personal elpa archive
author Augie Fackler <durin42@gmail.com>
date Thu, 09 Jun 2011 20:19:45 -0500
parents 4481fb6c3dfe
children fed8445581bb
line wrap: on
line source

import XMonad

import XMonad
import XMonad.Hooks.ManageDocks
import XMonad.Layout
import XMonad.Layout.Column
import XMonad.Layout.LayoutBuilder
import XMonad.Util.EZConfig
import XMonad.Util.Run(spawnPipe)

myLayout = augie2 ||| augie1 ||| Full
  where augie2 = ((layoutN 2 (relBox 0 0 1 0.75) (Just $ relBox 0 0 1 1) $ (Tall 1 0.03 0.75))
                 $ (layoutAll (relBox 0 0.75 1 1) $ (Mirror (Column 1))))
        augie1 = ((layoutN 1 (relBox 0 0 1 0.75) (Just $ relBox 0 0 1 1) $ (Tall 1 0.03 0.75))
                 $ (layoutAll (relBox 0 0.75 1 1) $ (Mirror (Column 1))))


main :: IO ()
main = do
     xmobar <- spawnPipe "xmobar"
     xmonad $ defaultConfig
       { terminal = "urxvt -sr -bg Black -fg White"
       , modMask = mod4Mask
       , layoutHook = avoidStruts myLayout
       } `additionalKeys` [
         ((mod4Mask, xK_a), spawn "gnome-screensaver-command --lock")
         ]