lmullen
June 28th, 2013, 01:30 AM
I've set up Xmonad with Gnome using the standard packages in the Ubuntu repository. I only have one custom Xmonad configuration file, xmonad.hs, which I've included below. When I login, Mod-P is not bound to the Gnome application launcher, as it should be. In order to get Mod-P to launch applications, I have to run the command
xmonad --restart. After that it works fine.
This problem is similar to the thread here (http://stackoverflow.com/questions/13965699/xmonad-dmenu-not-launching-spawning-on-startup), except he was using dmenu instead of the the Gnome application launcher, and it doesn't seem like the problem was solved.
What should I do?
Here is my xmonad.hs; it's pretty standard.
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Hooks.ManageHelpers
main = xmonad $ gnomeConfig { -- We use gnome rather than default
modMask = mod4Mask -- Use super key for mod
, workspaces = myWorkspaces
, manageHook = myManageHook
} `additionalKeysP` myKeys
myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9:web"]
myKeys = [
-- Instead of killing window manager, log out
("M-S-q", spawn "gnome-session-quit")
]
myManageHook = composeAll [
manageHook gnomeConfig
, (className =? "Gnome-panel" <&&> title =? "Run Application") --> doCenterFloat
, (className =? "sublime-text-2" <&&> title =? "Open File") --> doCenterFloat
, (className =? "Empathy") --> doFloat
, (resource =? "Dialog") --> doFloat
]
xmonad --restart. After that it works fine.
This problem is similar to the thread here (http://stackoverflow.com/questions/13965699/xmonad-dmenu-not-launching-spawning-on-startup), except he was using dmenu instead of the the Gnome application launcher, and it doesn't seem like the problem was solved.
What should I do?
Here is my xmonad.hs; it's pretty standard.
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Hooks.ManageHelpers
main = xmonad $ gnomeConfig { -- We use gnome rather than default
modMask = mod4Mask -- Use super key for mod
, workspaces = myWorkspaces
, manageHook = myManageHook
} `additionalKeysP` myKeys
myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9:web"]
myKeys = [
-- Instead of killing window manager, log out
("M-S-q", spawn "gnome-session-quit")
]
myManageHook = composeAll [
manageHook gnomeConfig
, (className =? "Gnome-panel" <&&> title =? "Run Application") --> doCenterFloat
, (className =? "sublime-text-2" <&&> title =? "Open File") --> doCenterFloat
, (className =? "Empathy") --> doFloat
, (resource =? "Dialog") --> doFloat
]