
Hy, I wanted to replace defaultGap with ManageDocks as everybody seems to recommend this and I wanted to play arround a little bit. But I ran into problems: I use xmobar as my StatusBar and the attached config. As you can see I commented defaultGaps out and used avoidStruts in my LayoutHook. In my Configfile there are two LaytouHooks, the upper one (commented out) is the one I use but in order to see if its a problem regarding "onWorkspace" I created the second Hook which is far more simple. Using this config nothing happens if I start up xmonad concerning my xmobar. It gets hidden by every window I create. ManageDock seems to recognize XMobar as I am not able to switch to it using Mod+Tab (which is fine!). Am I thinking wrong about the avoidStruts Method or using it wrong? Who can give me a hint? Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de

dominik:
Hy, I wanted to replace defaultGap with ManageDocks as everybody seems to recommend this and I wanted to play arround a little bit.
But I ran into problems: I use xmobar as my StatusBar and the attached config. As you can see I commented defaultGaps out and used avoidStruts in my LayoutHook. In my Configfile there are two LaytouHooks, the upper one (commented out) is the one I use but in order to see if its a problem regarding "onWorkspace" I created the second Hook which is far more simple.
Using this config nothing happens if I start up xmonad concerning my xmobar. It gets hidden by every window I create. ManageDock seems to recognize XMobar as I am not able to switch to it using Mod+Tab (which is fine!). Am I thinking wrong about the avoidStruts Method or using it wrong?
Who can give me a hint?
I think this is an xmobar bug, not setting override-redirect? -- Don

On Fri, Jan 04, 2008 at 08:03:29PM +0100, Dominik Bruhn wrote:
Hy, I wanted to replace defaultGap with ManageDocks as everybody seems to recommend this and I wanted to play arround a little bit.
But I ran into problems: I use xmobar as my StatusBar and the attached config. As you can see I commented defaultGaps out and used avoidStruts in my LayoutHook. In my Configfile there are two LaytouHooks, the upper one (commented out) is the one I use but in order to see if its a problem regarding "onWorkspace" I created the second Hook which is far more simple.
Using this config nothing happens if I start up xmonad concerning my xmobar. It gets hidden by every window I create. ManageDock seems to recognize XMobar as I am not able to switch to it using Mod+Tab (which is fine!). Am I thinking wrong about the avoidStruts Method or using it wrong?
Who can give me a hint?
Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de
Try running xprop on the xmobar window. Do you see _NET_WM_STRUT in the output? If not, you'll need to upgrade xmobar -- I can't remember which version added strut support. Cheers, Spencer Janssen

On Fri, Jan 04, 2008 at 01:59:43PM -0600, Spencer Janssen wrote:
Try running xprop on the xmobar window. Do you see _NET_WM_STRUT in the output? If not, you'll need to upgrade xmobar -- I can't remember which version added strut support. As I use xmobar from darcs the output is: _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK _NET_WM_STRUT(CARDINAL) = 0, 0, 0, 0 So, this is not the solution. As I mentioned above the manageDock-Hook also avoids managing the xmobar-window so it recognizes it.
Greetings -- Dominik Bruhn mailto: dominik@dbruhn.de

On Fri, Jan 04, 2008 at 10:38:43PM +0100, Dominik Bruhn wrote:
On Fri, Jan 04, 2008 at 01:59:43PM -0600, Spencer Janssen wrote:
Try running xprop on the xmobar window. Do you see _NET_WM_STRUT in the output? If not, you'll need to upgrade xmobar -- I can't remember which version added strut support. As I use xmobar from darcs the output is: _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK _NET_WM_STRUT(CARDINAL) = 0, 0, 0, 0
That last line is the problem. xmobar sets a strut value of zero pixels on each edge of the screen. Can you show us your xmobar config?
So, this is not the solution. As I mentioned above the manageDock-Hook also avoids managing the xmobar-window so it recognizes it.
manageDocks doesn't apply to xmobar because it is an 'override-redirect' window. Cheers, Spencer Janssen

On Fri, Jan 04, 2008 at 04:18:52PM -0600, Spencer Janssen wrote:
That last line is the problem. xmobar sets a strut value of zero pixels on each edge of the screen. Can you show us your xmobar config? Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "black" , fgColor = "white" , position = TopW L 100 , commands = [ Run Com "/home/dominik/.xmonad/checkmails.sh" [] "mails" 600 , Run Date "%A, %d.%m.%Y %H:%M:%S" "date" 10 , Run Com "/home/dominik/.xmonad/battery.sh" [] "battery" 600 , Run Com "/home/dominik/.xmonad/volume.sh" [] "volume" 100 , Run PipeReader "/home/dominik/.xmonad/status" "xmobar" ] , sepChar = "%" , alignSep = "{}" , template = "%xmobar%{}%mails% | %volume% | %battery% | %date%" }
manageDocks doesn't apply to xmobar because it is an 'override-redirect' window.
Okay, I dont understand this, but I havnt got the knowledge of X11 so its my fault! Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de

Hy, after chaning the Position in my xmobar Config from "TopW L 100" to Top everything works fine. I think there is a bug in xmobar not in xmonad. -- Dominik Bruhn mailto: dominik@dbruhn.de

On Fri, Jan 04, 2008 at 09:12:55PM -0600, Spencer Janssen wrote:
On Sat, Jan 05, 2008 at 01:31:02AM +0100, Dominik Bruhn wrote:
I think there is a bug in xmobar not in xmonad.
Agreed.
I just pushed a fix so that strut values are even with TopW and BottomW (but not with Static). Thanks, andrea ps: sorry I'm coming back so late but I had some email issues lately.
participants (4)
-
Andrea Rossato
-
Dominik Bruhn
-
Don Stewart
-
Spencer Janssen