I think you could use avoidStrutsOn with empty brackets. Like this:
myLayout = avoidStrutsOn [] $ ...
Then you docks will start hidden by default and ToggleStruts will show them.

Regards,
Henrique G. Abreu


On Mon, Sep 21, 2009 at 20:15, Thomas Friedrich <info@suud.de> wrote:
Hi everybody,

I am using avoidStruts from XMonad.Hooks.ManageDocks to toggle between
the dock gaps, so I have something like

myLayout = avoidStruts $ ...

in my xmonad.hs.  Now, I only have the tiniest panel ever which only
consists of a clock and the icon of the nm-applet.  I would prefer if
xmonad would cover up the docks by default, and only when I'd like to
check the time or like to have a look at the Internet connection, to
toggle the gap to appear.

Is there any neat and straight forward way to do so?

Thanks so much in advance!

Cheers,
Thomas

_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad