You are not logged in.
I'm running arch on my MacBook pro. I'm using i3. I installed polybar, copied the default config file into ~/.config/polybar and ran "polybar example" as was indicated after installation. On my MacBook's native screen, polybar starts up fine. However, when I connect to an external monitor I get
error: Resulting bar width is out of bounds (0)
The output of polybar -m is
HDMI2: 0x1080+0+0
eDP1: 2560x1600+0+0
So it seems polybar thinks my external monitor (HDMI2) has width 0, hence the error The output of "xrandr" is
...
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
....
So X recognizes the monitor as 1920x1080+0+0. I'm lost as to why polybar outputs 0x1080+0+0.
Any help would be appreciated!
Offline
see if this can help you.
https://protesilaos.com/codelog/multihe … m-polybar/
hp-envy dv7
Offline
Could you also post the output of
xrandr --listmonitors
Here you go!
Monitors: 2
0: +*eDP1 2560/290x1600/180+0+0 eDP1
1: +HDMI2 1920/480x1080/270+0+0 HDMI2
Offline
I think we had a similar problem in #1437.
Hey applying the diff from that issue worked! I just had to then manually specify the width.
Offline