ryanflannery/oxbar

Multi-monitor setup not supported

aviofreak opened this issue · 1 comments

Hi,

I've got a laptop (1280x800) with external monitor (2560x1440) configured the following way:

xrandr --auto --output DP-2 --primary --above LVDS-1
xrandr --output DP-2 --pos -640x0

so the laptop's screen is below the external display and is centered.

When I run oxbar top I can see the whole bar on top of the external monitor only. When I run oxbar bottom I can see only part of the bottom bar on laptop's screen only. It looks as if it takes the 2560px width and crops the left and right sides of the bar.

Ideal solution would be specifying the monitor(s) in the theme section.

So, for example, if I wanted to have top bar on each screen (each bar with different widgets, due to various screen widths) I would run two instances of oxbar, each with different monitor setting.

Regards
aviofreak

Ah -- a multi-monitor setup.
I used to support this with the old xstatbar because I had such a setup at the time I could test with. Sadly that is not the case now.

I took care to try and account for this when writing oxbar, but only in a way that it would respect the screen from which it's launched. Based on your notes, I got that wrong.
Regardless, the desired X screen should be explicitly set-able somewhere (the config, cmd line, environment, etc).

I'll need time to investigate this one. I think I have everything from your setup to understand the problem, I just need to first find a way to reproduce, or ate least test, the solution. Likely not a quick fix.

Thanks for the report