I have the following in my .bashrc file...
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# multi-monitor configuration
xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output VGA1 --mode 1600x900 --pos 1920x0 --rotate normal
When I login, my monitors are mirrored and are at a bad resolution, making me believe this did not run. However, the first time I open a terminal after logging in, my monitors adjust the proper resolution and extend properly.
Why does this .bashrc file seem to be running only after I open a terminal? I was under the impression it runs when I login. How can I get it to do so?