I have been using fedora 18 lately and trying to get xmonad working with gnome-panel. On my ubuntu and kali installations this works perfectly fine, but in fedora I have yet to get gnome-panels to show up correctly. Any help as to why the gnome-panels show up the way they do and getting it to work correctly is greatly appreciated. Here is a screenshot. Notice the 2 black panels on the right. I have figured out they are suppose to be the upper and lower gnome-panel menus but obviously they are not working in fedora and xmonad yet.
I have an xmonad desktop file
#/usr/share/applications/xmonad.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Xmonad
Exec=xmonad-start
NoDisplay=true
X-GNOME-WMName=Xmonad
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=false
I have a gnome-session file
#/usr/share/gnome-session/sessions/xmonad.session
[GNOME Session]
Name=Xmonad/GNOME
RequiredComponents=gnome-settings-daemon;gnome-panel;
RequiredProviders=windowmanager;notifications;
DefaultProvider-windowmanager=xmonad
DefaultProvider-notifications=notification-daemon
I have an xsessions file
#/usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad Gnome
Comment=Lightweight tiling window manager
TryExec=/usr/bin/gnome-session
Exec=gnome-session --session=xmonad
#Icon=xmonad.png
Type=XSession
This works just fine in my other systems but in fedora after logging into xmonad gnome-panel seems to open two panels that are suppose to be the gnome-panels at the top and the bottom but they are blank. Plus you can't close them or anything else with them.
Inside my xmonad.hs file a the top I import the GnomeConfig module and the ManageDocks module.
import XMonad.Config.Gnome
import XMonad.Hooks.ManageDocks
I also have added gnome-panel ignore to my configuration, but I don't know for all certainty what it does ( I just know it made my other systems work after adding it)
myManageHook = composeAll
[ manageHook gnomeConfig
, className =? "File Operation Progress" --> doFloat
, className =? "google-chrome" --> doShift "4:chrome"
, resource =? "desktop_window" --> doIgnore
, resource =? "kdesktop" --> doIgnore
, resource =? "gnome-panel" --> doIgnore ]
And I have changed my defaults to the GnomeConfig that I imported at the top.
main = xmonad defaults
defaults = gnomeConfig {
-- simple stuff
terminal = myTerminal,
focusFollowsMouse = myFocusFollowsMouse,
borderWidth = myBorderWidth,
modMask = myModMask,
-- numlockMask deprecated in 0.9.1
-- numlockMask = myNumlockMask,
workspaces = myWorkspaces,
normalBorderColor = myNormalBorderColor,
focusedBorderColor = myFocusedBorderColor,
-- key bindings
keys = myKeys,
mouseBindings = myMouseBindings,
-- hooks, layouts
layoutHook = myLayout,
manageHook = myManageHook,
handleEventHook = myEventHook,
logHook = myLogHook,
startupHook = myStartupHook
}