Hello everyone, I was wondering if someone could help me correct this stupid issue I am having. Well its really not an issue, its more annoying, ok let me explain.
So when I login my primary monitor does not get set, I have to rerun the script once more and woila, primary monitor gets set…which leads me to believe its not the script but how I have it running/autostarting
So I set my desktop resolution though a script:
#!/bin/zsh xrandr --output DP-0 --mode 1920x1080 --rate 240 --pos 0x0 --output DP-4 --primary --mode 1920x1080 --rate 240 --pos 1920x1080+0+0 --right-of DP-0 exit 0
I’ve made it hidden in my home folder but appending a . at the beginning of the filename and I have added it to BOTH my autostart file for openbox which looks like this:
# compton al-compositor --start & # enable numlock, commented out for laptop users # numlockx & # restore wallpaper nitrogen --restore & # required for xfce settings to work xfsettingsd & # fancy window switcher skippy-xd --config ~/.config/skippy-xd/skippy-xd.rc --start-daemon & # desktop resolution ~/.desktopres.sh & # start polybar al-polybar-session & #start plank plank & #XFCE Power manager xfce4-power-manager &
and like I said I also added the file to my autostart folder, which I think gets run once I login…but again for some strange reason, which I cant seem to figure out is that it doesnt set the primary monitor until I run the script once more in the terminal and within less than a milisecond it completes. I rerun xrandr, and see that my primary has been set…
If anyone can help me, I would really REALLY appreciate it!