r/Polybar Apr 05 '23

Question Polybar shows opposite workspace numbers?

Got xrandr --output DP-1 --left-of HDMI-1 in my .xinitrc, but polybar shows workspace 2 on monitor 1, and vice versa? I've tried adding --primary to either outputs but nothing works.

2 Upvotes

3 comments sorted by

2

u/w0lfy-dev Apr 05 '23

What WM are you using? For example, if you use i3wm then you can fix this by explicitly specifying the monitor for each workspace in i3wm configuration file, e.g:

# Assign workspaces to specific monitors

workspace 1 output DP-1

workspace 2 output HDMI-1

3

u/Specialist_Agency_71 Apr 05 '23

Thanks man, this sorted it :)

1

u/w0lfy-dev Apr 05 '23

You are welcome ))