Leftwm: Windows orverlap polybar if there are more than one bar.

Created on 16 May 2021  路  4Comments  路  Source: leftwm/leftwm

Hello,

I'm trying to use two Polybar bars but once LeftWM is reloaded the bar initiated first get overlapped by every window.

Since this is my first LeftWM configuration I am re-using the Coffee theme up hence I'm starting Polybar with this:

if [ -x "$(command -v polybar)" ]; then
  pkill polybar
  monitors="$(polybar -m | sed s/:.*// | tac)"
  while read -r display; do
    MONITOR=$display polybar -c "$SCRIPTPATH/polybar.config" top &> /dev/null &
    MONITOR=$display polybar -c "$SCRIPTPATH/polybar.config" bottom &> /dev/null &
  done <<< "$monitors"
  exit 0
fi

I tried some variants, but always get the first initiated bar overlapped.

FreeBSD 13.0

screenshot_1621190444

Most helpful comment

This PR #329 has a gutter config option.
It might get merged soon.
If you want to try this bevore merge just know you need to add this to your theme.toml

[[gutter]]
side = "Top"
value = 24 #or what ever your bar height is

But I think we should try to get a better handling of complex bar setups, as this is a common source of issues.

Also welcome adventurer, I beleive you are the first one from BSD-Land I see around here..

All 4 comments

This PR #329 has a gutter config option.
It might get merged soon.
If you want to try this bevore merge just know you need to add this to your theme.toml

[[gutter]]
side = "Top"
value = 24 #or what ever your bar height is

But I think we should try to get a better handling of complex bar setups, as this is a common source of issues.

Also welcome adventurer, I beleive you are the first one from BSD-Land I see around here..

Can you check to see if the PR #339 fixes the issue?

Can you check to see if the PR #339 fixes the issue?

I will will just be able to try it tonight. Btw, I commited the LeftWM FreeBSD port to the tree yesterday.

Thanks!

Yes, fixed nicely! Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mautamu picture mautamu  路  6Comments

jwnpoh picture jwnpoh  路  7Comments

midnightexigent picture midnightexigent  路  4Comments

sillen102 picture sillen102  路  3Comments

mautamu picture mautamu  路  5Comments