gh0stzk / dotfiles

BSPWM environment with 18 themes. With a theme selector to change on the fly.
GNU General Public License v3.0
3.02k stars 225 forks source link

What's wrong with my monitor config? #349

Closed Gribovoy29 closed 2 weeks ago

Gribovoy29 commented 3 weeks ago

Hello, It's me again. This time I can't seem to understand what did I do wrong in the monitor config. DP-2 is primary and DP-0 is secondary.

MONITOR1="DP-2"
MONITOR2="DP-0"
xrandr --output DP-2 --primary --mode 2560x1440@164.96 --rotate normal
    if [[ $(xrandr -q | grep "${MONITOR2} connected") ]]; then
        xrandr --output DP-0 --mode 1920x1200@59.95 --rotate right --right-of DP-2
        bspc monitor "$MONITOR1" -d '1' '2' '3' '4'
        bspc monitor "$MONITOR2" -d '5' '6' '7' '8'
        bspc wm -O "$MONITOR2" "$MONITOR1"
    else
        bspc monitor "$MONITOR1" -d '1' '2' '3' '4' '5' '6' '7' '8'
    fi
done

It works fine when I apply it in system, but when I reboot the system it just shows black screen. The only option is to run RiceInstaller to reset bspwmrc

kmeaw01 commented 3 weeks ago

x11 is just bad with multimonitor configs

gh0stzk commented 3 weeks ago

Yep looks like is nothing wrong with your conf, imposible to know, check logs, journal and dmesg. I read about this on reddit some time ago, could be good if you post there in bspwm subreddit, someone for sure will have answers.

Gribovoy29 commented 2 weeks ago

I've found the solution. You just have to remove the done in the last line of the monitor config. That makes so much sense that I feel dumb for missing it.