gap between window and statusbar (xmobar)

Hello Guys! I'm relatively new to xmonad (and Haskell), so this might be a stupid question. But well, I'll shot it anyhow ;) In my config (see below), I have to xmobar's running, one on top with only %StdinReader% and the second on bottom with MPD and Date. The xmobar on top has as Border on Bottom and the xmobar on .. you guess it. Well: while the borders of my windows and the xmobarborder sort of merge (1px + 1px = 2px), there is a gap between the borders of my windows and the xmobar on top. Why is that so and what can I do about it? Here is my xmonad.hs: http://hpaste.org/65398 (Oh, I see it's complaining about redundant $'s and that I should use 'head' ... what does the latter mean?) Greetings from sunny Cologne, 1126

On Fri, Mar 16, 2012 at 08:44, 1126
In my config (see below), I have to xmobar's running, one on top with only %StdinReader% and the second on bottom with MPD and Date. The xmobar on top has as Border on Bottom and the
You're spawning the bottom one with spawnPipe, which is wasteful and not entirely effective (if your intent was to have the bottom bar go away when xmonad is restarted like the top one does, it won't work; the bar has to actually use a StdinReader or it won't notice). xmobar on .. you
guess it. Well: while the borders of my windows and the xmobarborder sort of merge (1px + 1px = 2px), there is a gap between the borders of my windows and the xmobar on top. Why is that so and what can I do about it?
Doesn't appear to be an xmonad problem; you didn't provide your .xmobarrc files, so can't tell from there. It might also be a bug in xmobar, although I'm not aware of one that would cause the strut to be miscalculated or the bar to be mispositioned.
(Oh, I see it's complaining about redundant $'s and that I should use 'head' ... what does the latter mean?)
It's being grumpy about the "<something> !! 0", which is more briefly expressed as "head <something>"; in this case, having it look like the other cases is probably more appropriate, so don't worry about it. The redundant $ warnings are because "a $ b $ c" is identical to "a $ b c". -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Fri, 16. Mar 09:02, Brandon Allbery wrote:
On Fri, Mar 16, 2012 at 08:44, 1126
wrote: In my config (see below), I have to xmobar's running, one on top with only %StdinReader% and the second on bottom with MPD and Date. The xmobar on top has as Border on Bottom and the
You're spawning the bottom one with spawnPipe, which is wasteful and not entirely effective (if your intent was to have the bottom bar go away when xmonad is restarted like the top one does, it won't work; the bar has to actually use a StdinReader or it won't notice).
Yeah, that's right. So what's the more appropiate way to run two xmobar-instances?
xmobar on .. you guess it. Well: while the borders of my windows and the xmobarborder sort of merge (1px + 1px = 2px), there is a gap between the borders of my windows and the xmobar on top. Why is that so and what can I do about it?
Doesn't appear to be an xmonad problem; you didn't provide your .xmobarrc files, so can't tell from there. It might also be a bug in xmobar, although I'm not aware of one that would cause the strut to be miscalculated or the bar to be mispositioned.
True enough. I should've provided them. Here they are: - http://hpaste.org/65409 - http://hpaste.org/65407
(Oh, I see it's complaining about redundant $'s and that I should use 'head' ... what does the latter mean?)
It's being grumpy about the "<something> !! 0", which is more briefly expressed as "head <something>"; in this case, having it look like the other cases is probably more appropriate, so don't worry about it.
I won't.. I've seen it in a example-config and "--> doShift "workspace"-way did not work.. Anyway, shifting works and it compiles and runs.
The redundant $ warnings are because "a $ b $ c" is identical to "a $ b c".
Thanks for your kind help! 1126
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Fri, Mar 16, 2012 at 12:43, 1126
On Fri, 16. Mar 09:02, Brandon Allbery wrote:
You're spawning the bottom one with spawnPipe, which is wasteful and not
entirely effective (if your intent was to have the bottom bar go away when xmonad is restarted like the top one does, it won't work; the bar has to actually use a StdinReader or it won't notice).
Yeah, that's right. So what's the more appropiate way to run two xmobar-instances?
Typically standalone ones are run independently of xmonad since there's no reason to respawn them on cmd-q (unlike the ones being fed from DynamicLog, like your top xmobar, which *must* be respawned every time xmonad is restarted).
Doesn't appear to be an xmonad problem; you didn't provide your .xmobarrc
files, so can't tell from there. It might also be a bug in xmobar,
Still doesn't appear to be anything wrong. Are you sure you're not seeing the space (typically 1-2px) left for descenders in the font? Perhaps a screenshot would help. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

It took me quite a while to answer your mail, it was busy weekend for me. I'm sorry. On Fri, 16. Mar 12:52, Brandon Allbery wrote:
On Fri, Mar 16, 2012 at 12:43, 1126
wrote: On Fri, 16. Mar 09:02, Brandon Allbery wrote:
You're spawning the bottom one with spawnPipe, which is wasteful and not
entirely effective (if your intent was to have the bottom bar go away when xmonad is restarted like the top one does, it won't work; the bar has to actually use a StdinReader or it won't notice).
Yeah, that's right. So what's the more appropiate way to run two xmobar-instances?
Typically standalone ones are run independently of xmonad since there's no reason to respawn them on cmd-q (unlike the ones being fed from DynamicLog, like your top xmobar, which *must* be respawned every time xmonad is restarted).
You were right. There were multiple instances of xmobar running. I fixed that one :)
Doesn't appear to be an xmonad problem; you didn't provide your .xmobarrc
files, so can't tell from there. It might also be a bug in xmobar,
Still doesn't appear to be anything wrong. Are you sure you're not seeing the space (typically 1-2px) left for descenders in the font? Perhaps a screenshot would help.
Here you are: http://postimage.org/image/cnz6xcnhp/ Maybe you're right and it is the space left for descenders I'm seeing. Greetings, 1126
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Sun, Mar 18, 2012 at 10:56, 1126
Hm, no, not space for descenders. But space apparently belonging to xmobar (you could test that by setting a distinct background color). Hm, is jaor around/reading? -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Sun, Mar 18 2012, Brandon Allbery wrote:
On Sun, Mar 18, 2012 at 10:56, 1126
wrote: http://postimage.org/image/cnz6xcnhp/
Hm, no, not space for descenders. But space apparently belonging to xmobar (you could test that by setting a distinct background color). Hm, is jaor around/reading?
Sort of :) But yes, i'll take a look if i manage to find the time. The background test would definitely be useful. Cheers, jao -- A man has to live with himself, and he should see to it that he always has good company. -Charles Evans Hughes, jurist (1862-1948)

On Sun, 18. Mar 22:00, Jose A. Ortega Ruiz wrote:
On Sun, Mar 18 2012, Brandon Allbery wrote:
On Sun, Mar 18, 2012 at 10:56, 1126
wrote: http://postimage.org/image/cnz6xcnhp/
Hm, no, not space for descenders. But space apparently belonging to xmobar (you could test that by setting a distinct background color). Hm, is jaor around/reading?
Sort of :) But yes, i'll take a look if i manage to find the time. The background test would definitely be useful.
Here you are! Cheers!
Cheers, jao -- A man has to live with himself, and he should see to it that he always has good company. -Charles Evans Hughes, jurist (1862-1948)
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
participants (3)
-
1126
-
Brandon Allbery
-
Jose A. Ortega Ruiz