
Hello, I've noticed that the support for 'gaps' has been removed from xmonad 0.7. I see that the gaps can now be added by the extension module: XMonad.Hooks.ManageDocks. However I'm having some trouble getting xmonad to recognize my xmobar dock. Here are the relevant parts from my xmonad.hs: (I also attached the full file and my .xmobarrc in case it matters) --------------------------------------------------- ... import qualified System.IO as SIO import qualified XMonad.Hooks.DynamicLog as DL import qualified XMonad.Hooks.ManageDocks as MD ... main = xmonad =<< basConfig basConfig = do xmobar <- R.spawnPipe "xmobar" return $ defaultConfig { logHook = myLogHook xmobar , layoutHook = myLayout ... , manageHook = manageHook defaultConfig <+> MD.manageDocks } myLogHook h = DL.dynamicLogWithPP DL.xmobarPP {DL.ppOutput = SIO.hPutStrLn h} myLayout = MD.avoidStruts $ NB.smartBorders ( tiled ||| Mirror tiled ||| NB.noBorders (T.tabbed D.shrinkText D.defaultTheme { D.decoHeight = 15 } ) ) where tiled = Tall 1 (3/100) (1/2) ... --------------------------------------------------- It would be great if someone can give me some tips to get my gaps working again. Thanks, Bas

Bas van Dijk wrote:
Hello,
I've noticed that the support for 'gaps' has been removed from xmonad 0.7. I see that the gaps can now be added by the extension module: XMonad.Hooks.ManageDocks. However I'm having some trouble getting xmonad to recognize my xmobar dock. Here are the relevant parts from my xmonad.hs: (I also attached the full file and my .xmobarrc in case it matters) ...
Hi Bas, Problem is that "Static" position in xmobar doesn't handle struts. Use Top/Bottom/TopW/BottomW instead of Static to get gaps working. If you use xinerama and want to have xmobar on different screen than the first one, take testing patch from https://www.hck.sk/free/xmobar-testing-patches/xmobar_on_screen_position.dpa... and use OnScreen X {SPEC}, where X is the screen number and {SPEC} is one of Top/Bottom/TopW/BottomW/Static. Example taken from my .xmobarrc: ... , position = OnScreen 1 Top ... HTH, Juraj
participants (2)
-
Bas van Dijk
-
Juraj Hercek