分类: LINUX
2010-07-11 20:52:06
$ cat /usr/share/applications/xmonad.desktop [Desktop Entry] Type=Application Encoding=UTF-8 Name=Xmonad Exec=xmonad NoDisplay=true X-GNOME-WMName=Xmonad X-GNOME-Autostart-Phase=WindowManager X-GNOME-Provides=windowmanager X-GNOME-Autostart-Notify=true |
$ cat /usr/share/xsessions/xmonad.desktop [Desktop Entry] Encoding=UTF-8 Name=XMonad Comment=Lightweight tiling window manager Exec=xmonad.start Icon=xmonad.png Type=XSession |
cat /usr/local/bin/xmonad.start export WINDOW_MANAGER="xmonad" exec gnome-session sudo chmod a+x /usr/local/bin/xmonad.start |
$ gconftool-2 -g /desktop/gnome/session/required_components/windowmanager 如果不是gnome-wm,用应用程序》系统工具》配置编辑器修改成gnome-wm |
$ cat ~/.xmonad/xmonad.hs import XMonad import XMonad.Config.Gnome main = xmonad $ gnomeConfig { modMask = mod4Mask -- set the mod key to the windows key , focusFollowsMouse = False } $xmonad --recompile |