Closed PapuchoX2X closed 1 month ago
I don't know if this helps you, but I did it this way... and then with xrandr I defined the positions of the monitors, however, every time I turn it on I start autorandr to get the configuration I made with the correct guidelines.
change these values according to your system
# you can use `xrandr -q` to get the names of monitors
INTERNAL_MONITOR="HDMI-0"
EXTERNAL_MONITOR="DP-1"
if [[ $(xrandr -q | grep "${EXTERNAL_MONITOR} connected") ]]; then
bspc monitor "$EXTERNAL_MONITOR" -d '1' '2' '3' '4'
bspc monitor "$INTERNAL_MONITOR" -d '5' '6' '7' '8'
bspc wm -O "$EXTERNAL_MONITOR" "$INTERNAL_MONITOR"
else
bspc monitor "$INTERNAL_MONITOR" -d '1' '2' '3' '4' '5' '6' '7' '8'
fi
I don't know if this helps you, but I did it this way... and then with xrandr I defined the positions of the monitors, however, every time I turn it on I start autorandr to get the configuration I made with the correct guidelines.
change these values according to your system
# you can use `xrandr -q` to get the names of monitors INTERNAL_MONITOR="HDMI-0" EXTERNAL_MONITOR="DP-1" if [[ $(xrandr -q | grep "${EXTERNAL_MONITOR} connected") ]]; then bspc monitor "$EXTERNAL_MONITOR" -d '1' '2' '3' '4' bspc monitor "$INTERNAL_MONITOR" -d '5' '6' '7' '8' bspc wm -O "$EXTERNAL_MONITOR" "$INTERNAL_MONITOR" else bspc monitor "$INTERNAL_MONITOR" -d '1' '2' '3' '4' '5' '6' '7' '8' fi
[+1] this one works on my end
I paste the code in ~/.config/bspwm/bspwmrc in line 26 '''
change these values according to your system
''' and change de values of INTERNAL_MONITOR and EXTERNAL_MONITOR and nothing happens. can you help me please?