2013-02-27 30 views
3

我在Fedora派生的發行版中,XMonad很好地與窗口環境搭配使用。我~/.xmonad.xmonad.hsmain分配看起來像修改類似Fedora的發行版中的XMonad配置

main = do 
    session <- getEnv "DESKTOP_SESSION" 
    xmonad $ maybe desktopConfig desktop session 

desktop "gnome"  = gnomeConfig 
desktop "kde"   = kde4Config 
desktop "xfce"   = xfceConfig 
desktop "xmonad-gnome" = gnomeConfig 
desktop _    = desktopConfig 

我看到所有這些華而不實的修改,我可以在喜歡的地方http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Config-Desktop.html做一拉

xmonad $ desktopConfig { 
    manageHook = myManageHook <+> manageHook desktopConfig 
, layoutHook = simpleTabbed ||| layoutHook desktopConfig 
} 

我是一個完整的Haskell noob。我怎樣才能修改 xmonad $也許desktopConfig桌面會話 行允許以不破壞窗口環境調度的方式添加這些好吃的東西?

回答

2
main = do 
    session <- getEnv "DESKTOP_SESSION" 
    let config = maybe desktopConfig desktop session 
    xmonad $ config{ manageHook = myManageHook <+> manageHook config, ... } 
+0

謝謝你的幫助。 – 2013-02-28 16:37:12