I have an external monitor connected to my laptop.
That external monitor (HDMI-0) is being chosen as my primary screen every time I boot into the system.
I have configured my i3 config file. I have created my monitor.sh file.
The issue is that every time I log in, both of my screens are on workspace 6, and when I look at arandr it shows a setup like this:
Hello wiktor, welcome to
I use the openbox edition and for me to have my dual screen set up saved I added the following line into my autostart file
.screenlayout/dual.sh
I am not sure how the i-3 autostart works but I saved my dual screen set up as dual.sh and told my computer to load it when I start. If I am not on my dual screen set up and just turn on my laptop it naturally defaults to the other file single.sh so I didn’t need to do anything to tell it to do that
I have done the equivalent of this on my i3wm installation. The issue is that it doesn’t work as intended. I should probably add that I have an Nvidia card.
Hmm, maybe try something like this xrandr --output eDP-1-1 --auto --primary --output HDMI-0 --auto --right-of eDP-1-1
in your config file. This may put your eDP as primary and put your HDMI to the right of it
This worked like a charm. Thank you so much for the help. Now my system starts with an xrandr setup for a single screen if my external monitor is disconnected and it starts with the dual monitor setup if my external monitor is connected.