Discussion:
[xmonad] XMonad.Hooks.ManageDocks: can't toggle dock gap since 0.13
Mekeor Melire
2017-05-09 01:17:40 UTC
Permalink
Hello,

since version 0.13 of xmonad(-contrib) and upgrading my config to that
version, I find my config not to work as expected. Specifically, my
binding for `sendMessage ToggleStruts` doesn't toggle the dock gap
anymore. Instead, all windows overlap over my dock (dzen2) all the time.

I followed the instructions at the documentation (of
***@xmonad-contrib):

https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-ManageDocks.html

i.e. I apply `docks` on the XConfig and `avoidStruts` on the layout.

You can find my current config on GitHub (repo: "config"; branch:
"xmonad-0.13"):

https://github.com/mekeor/config/blob/xmonad-0.13/home/mekeor/.xmonad/xmonad.hs

I also checked CHANGES.md but version 0.13 only seems to fix bugs in
that module.

What am I doing wrong? Am I missing something?

--
mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868
Brandon Allbery
2017-05-09 01:25:44 UTC
Permalink
Post by Mekeor Melire
anymore. Instead, all windows overlap over my dock (dzen2) all the time.
dzen2 needs the -dock parameter now. I don't know why; supposedly it sets
the strut anyway and supposedly we have code to handle it without the EWMH
dock indicator.
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Mekeor Melire
2017-05-09 02:27:12 UTC
Permalink
Post by Brandon Allbery
dzen2 needs the -dock parameter now. I don't know why; supposedly it sets
the strut anyway and supposedly we have code to handle it without the EWMH
dock indicator.
Thank you! :)
Gregory Propf
2017-05-10 22:44:49 UTC
Permalink
Yes, with 0.13 you will need both 'docks' and 'avoidStruts'. Most of the
documentation you find on Xmonad out there isn't up to date on this.

xmonad $ docks defaultConfig
{ manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, etc...
Post by Mekeor Melire
Post by Brandon Allbery
dzen2 needs the -dock parameter now. I don't know why; supposedly it sets
the strut anyway and supposedly we have code to handle it without the
EWMH
Post by Brandon Allbery
dock indicator.
Thank you! :)
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Loading...