Closed alexanderdavidsen closed 7 years ago
Hi. Do you want it to be shown on DP-3 or DP-4.2? The geom reported by polybar -m
looks malformed. Can you post the output of polybar -vv
Hi!
I want it to start on DP-4.2 when this monitor is connected ( at the office), and on DP-3 when no other monitors are conneccted. Another possible solution would be to start the bar on all connected monitors, if such option exists.
Here is the output from polybar -vv, only DP-3 connected (laptop screen).
polybar 3.0.4-1-g1d06df2
Features: +alsa +curl +i3 +mpd +network
X extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm
Build type: RelWithDebInfo
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro
The following commands forces the bar to the correct monitor:
!/bin/sh
xrandr --output DP-4.2 --off xrandr --output DP-4.2 --auto xrandr --output DP-4.2 --primary --mode 3840x2160 --pos 3840x0 --rotate normal --output DP-4 --off --output DP-3 --mode 3840x2160 --pos 0x0 --rotate normal --output DP-2 --off --output DP-1 --off --output DP-0 --off
polybar -m DP-3: 3840x2160+0+0 DP-4.2: 3840x2160+3840+0
I think it might be related to the malformed geometry reported (DP-3: 3840x2160+0+
) because after you got the monitors setup like that it seems to report it correctly.
I guess you are right! Closing The issue!:-)
When using two monitors, polybar selects the wrong monitor, except the system tray. The system tray is started on the monitor set as primary with xrandr, but the rest of the bar is started on the secondary monitor.
I'm using i3-gaps.
Available monitors according to polybar
Monitor configuration
My configuration:
I'm installing polybar for Aur. I have the same problem with both
polybar
andpolybar-git
.There is a issue from October, where upgrading to the latest version fixed the issue. This does not work for me..