diff .xmonad/xmonad.hs @ 249:fed8445581bb

xmonad: gnome-friendly configuration
author Augie Fackler <durin42@gmail.com>
date Mon, 16 Aug 2010 11:16:37 -0500
parents 4481fb6c3dfe
children 93a8f55a4e30
line wrap: on
line diff
--- a/.xmonad/xmonad.hs
+++ b/.xmonad/xmonad.hs
@@ -1,6 +1,7 @@
 import XMonad
 
 import XMonad
+import XMonad.Config.Gnome
 import XMonad.Hooks.ManageDocks
 import XMonad.Layout
 import XMonad.Layout.Column
@@ -15,13 +16,17 @@ myLayout = augie2 ||| augie1 ||| Full
                  $ (layoutAll (relBox 0 0.75 1 1) $ (Mirror (Column 1))))
 
 
+myDmenuTitleBar =
+    "exec `dmenu_path | dmenu\
+        \ -p 'Run:'`"
+
 main :: IO ()
 main = do
-     xmobar <- spawnPipe "xmobar"
-     xmonad $ defaultConfig
+     xmonad $ gnomeConfig
        { terminal = "urxvt -sr -bg Black -fg White"
        , modMask = mod4Mask
        , layoutHook = avoidStruts myLayout
        } `additionalKeys` [
          ((mod4Mask, xK_a), spawn "gnome-screensaver-command --lock")
+       , ((mod4Mask, xK_p), spawn myDmenuTitleBar)
          ]