Results 1 to 4 of 4

Thread: Mod-P not bound at startup in XMonad Gnome

  1. #1
    Join Date
    Jul 2007
    Beans
    4
    Distro
    Ubuntu 7.04 Feisty Fawn

    Mod-P not bound at startup in XMonad Gnome

    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
    Code:
    xmonad --restart
    . After that it works fine.

    This problem is similar to the thread here, 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.

    Code:
    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
      ]

  2. #2
    Join Date
    Aug 2013
    Beans
    10

    Angry Re: Mod-P not bound at startup in XMonad Gnome

    Same problem here with Ubuntu 12.04 and this xmonad.hs: https://github.com/texttheater/.xmon...ster/xmonad.hs

  3. #3
    Join Date
    Aug 2013
    Beans
    10

    Re: Mod-P not bound at startup in XMonad Gnome

    I found a workaround. Adding the Win+p key binding directly works for me without restarting xmonad. My modified xmonad.hs is here: https://github.com/texttheater/.xmon...ster/xmonad.hs

  4. #4
    Join Date
    Aug 2013
    Beans
    10

    Re: Mod-P not bound at startup in XMonad Gnome

    Quote Originally Posted by kevang2 View Post
    I found a workaround. Adding the Win+p key binding directly works for me without restarting xmonad. My modified xmonad.hs is here: https://github.com/texttheater/.xmon...ster/xmonad.hs
    I may have tricked myself into believing that this works, on further inspection it seems it doesn't. Sorry.

    In other news, I didn't have this bug in Ubuntu 13.04 on my home machine, but since I upgraded to 13.10 it appeared there as well.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •