Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No menubar in Xmonad with Ubuntu Unity

Tags:

xmonad

when I use xmonad in ubuntu, I follow the tutorial of Xmonad, but there's no app menubar. How can I solve this problem?

my configure file is here:

import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
--import XMonad.Config.Gnome
import XMonad.Layout.Gaps
myLayouts = gaps [(U, 24)] -- $ layoutHook gnomeConfig 


main = do
--  xmproc <- spawnPipe "/usr/bin/xmobar ~/.xmobarrc"
xmonad $ defaultConfig
{manageHook = composeAll [
    -- other hooks,
    manageDocks
    , className =? "Unity-2d-panel"    --> doIgnore
    --, className =? "Unity-2d-launcher" --> doIgnore
      -- more hooks
    ]

    -- for gnome begin
    --manageDocks <+> manageHook defaultConfig
    -- for gnome end
, layoutHook = avoidStruts  $  layoutHook defaultConfig
--, logHook = dynamicLogWithPP xmobarPP
--                    { ppOutput = hPutStrLn xmproc
--                    , ppTitle = xmobarColor "green" "" . shorten 50
--                    }
, modMask = mod4Mask     -- Rebind Mod to the Windows key
}
like image 343
WhatisThat Avatar asked Nov 05 '22 09:11

WhatisThat


1 Answers

Looks like you want to remove global appmenu bar, indicator-appmenu.

You can remove it using apt-get:

sudo apt-get remove indicator-appmenu

then logout/login. Note that this is global so all accounts will loose the global appmenu.

like image 189
Silfheed Avatar answered Nov 28 '22 06:11

Silfheed