view .xmonad/xmonad.hs @ 188:e77c01b7b0f4

localfuncs: add tool for running check-code on hg
author Augie Fackler <durin42@gmail.com>
date Wed, 24 Feb 2010 14:34:21 -0600
parents 2d8105525973
children 4481fb6c3dfe
line wrap: on
line source

import XMonad

import XMonad
import XMonad.Layout
import XMonad.Layout.Column
import XMonad.Layout.LayoutBuilder
import XMonad.Util.EZConfig

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 = xmonad $ defaultConfig
       { terminal = "urxvt -sr -bg Black -fg White"
       , modMask = mod4Mask
       , layoutHook = myLayout
       } `additionalKeys` [
         ((mod4Mask, xK_a), spawn "gnome-screensaver-command --lock")
         ]