Discussion:
[xmonad] ManageDocks issue
Tim DuBois
2017-06-01 11:54:30 UTC
Permalink
Hi everyone,

I haven't altered my configuration for almost a year now, but recently
my layouts have not been respecting my dzen bar.

I understand that ManageDocks should be handling this, although that's
seemingly no longer the case.

If you take a look at my config:

https://github.com/Libbum/xmonad/blob/master/xmonad.hs

you'll see I have manageDocks here

92 newManageHook = myManageHook <+> manageHook defaultConfig <+> manageDocks

which is incorporated here:

190 main = do
191 dzenLeftBar <- spawnPipe myXmonadBar
192 dzenRightBar <- spawnPipe myStatusBar
193 xmonad $ defaultConfig
194 { terminal = myTerminal
...

201 , manageHook = newManageHook


Has something changed that I'm overlooking, or is there anything in my
config you can see is causing this? I'm at a loss at how to debug the
problem at the moment.

Regards,

--Tim
Brandon Allbery
2017-06-01 17:08:50 UTC
Permalink
Post by Tim DuBois
I haven't altered my configuration for almost a year now, but recently
my layouts have not been respecting my dzen bar.
Two issues:

1. if you have upgraded xmonad past 0.11, you need more hooks for docks to
work right. Consider switching from manual hook management to
http://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-ManageDocks.html#v:docks
(which will also protect you from future additions/changes).

2. For reasons currently unknown, ManageDocks is ignoring struts on windows
that are not marked as EWMH dock windows. dzen doesn't mark itself as a
dock by default; you must pass the `-dock' parameter to it.
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Loading...