many dzen instances

Hello,
I am including two new instances of dzen2 to monitor my local box and a remote
machine using a piped conky. It mostly works, however there's a minor -I hope-
glitch. The two new instances of dzen appears above the windows.
There's another -previous- instance of dzen on the top of the screen which I use
to log info about the workspaces, layouts and window title. That one fits ok into
the layout without a problem.
http://jesgue.homelinux.org/other-files/3-dzens.jpg
In the pic you can see the problem illustrated.
And the relevant snippet from my config is:
=====================================
-- dynamiclog pretty printer for dzen
robPP h = defaultPP {
ppCurrent = wrap "^fg(#000000)^bg(#0390e1)^p(2)" "^p(2)^fg()^bg()"
, ppHidden = wrap "^fg(#0390e1)" "^fg()^bg()"
, ppHiddenNoWindows = wrap "^fg(grey70)" "^fg()^bg()"
, ppSep = " ^fg(gray70)^r(3x3)^fg() "
, ppTitle = dzenColor "#90e103" "" . wrap "[ " " ]"
, ppOutput = hPutStrLn h
}
statusBarCmd = "dzen2 -bg '#222222' -fg '#00ff00' -sa c -fn '-*-dejavu sans-*-r-*-*-12-*-*-*-*-*-*-*' -e '' -xs 1"
statusBarCmd2 = "ssh root@server conky | dzen2 -bg '#222222' -fg '#00ff00' -sa l -fn '-*-dejavu sans-*-r-*-*-11-*-*-*-*-*-*-*' -e '' -xs 1 -y 1160"
statusBarCmd3 = "conky -c ~/.conkyrc-xmonad | dzen2 -bg '#222222' -fg '#00ff00' -sa l -fn '-*-dejavu sans-*-r-*-*-11-*-*-*-*-*-*-*' -e '' -xs 1 -y 1180"
main = do
din <- spawnPipe statusBarCmd
din2 <- spawnPipe statusBarCmd2
din3 <- spawnPipe statusBarCmd3
xmonad $ defaultConfig {
terminal = myTerminal
, focusFollowsMouse = myFocusFollowsMouse
, borderWidth = myBorderWidth
, modMask = myModMask
, numlockMask = myNumlockMask
, workspaces = myWorkspaces
, normalBorderColor = myNormalBorderColor
, focusedBorderColor = myFocusedBorderColor
, keys = myKeys
, mouseBindings = myMouseBindings
, manageHook = manageDocks <+> manageHook defaultConfig <+> myManageHook
, logHook = dynamicLogWithPP $ robPP din
, layoutHook = myLayout
, startupHook = myStartupHook
}
=====================================
My question is why does one instance of dzen is respected by the layout, and
the other two are ignored? Or, how to make the two dzens at the bottom fit into
my layout, so they do not mess up the visibility of my windows.
Thanks for reading.
--
Jesús Guerrero
participants (1)
-
Jesús Guerrero