baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.6k stars 420 forks source link

swapped monitors #1424

Open tamis-laan opened 1 year ago

tamis-laan commented 1 year ago

I'm a bit confused, I'm using the following setup for my monitors:

# Set HDMI monitor
bspc monitor HDMI-A-0 -d 5 6 7 8

# Set laptop monitor
bspc monitor eDP -d 1 2 3 4

I would expect desktops 1-4 to go to my laptop screen and 5-8 to go to my hdmi screen. However it's the exact opposite!? Is this a bug or am I missing something?

camarman commented 1 year ago

I don't think it is a bug. I have found two reddit posts, which might be helpful to your situation. In this reddit post. it says

Bspwm doesn’t care what you name your desktops. The fact that you named them I II III V etc. has no meaning other than that’s the string associated with that desktop. So when you use that sxhkd keybinding, you’re actually focusing desktops by their index, not their name. The first monitor will contain the first 5 desktops by index.

You can also look at this one

If I remember correctly, the most important thing in bspwm is that you've FIRST to tell bspwm the correct order of your displays, with the command:

bspc wm -O DP-0 DP-7

I'm not using bspwm anymore these days but I clearly remember that I had to run this command in my bspwmrc BEFORE assigning workspaces to monitors, so play around with it and see if it solves your problem

piyoki commented 1 year ago

Man, you save my life. I spent tons of time debugging this minitor order issue. Nice to have the solution here. Thanks!