I know gnome-control-center display
changes the file ~/.config/monitors.xml
. But when I restart my machine, gnome-control-center display
don't remember my previous settings for dual monitors.
So I made backup of monitors.xml
and just copy the backup to ~/.config/monitors.xml when my system boots.
But now I need a way to apply this settings without needing to restart lightdm/gdm or logging out of my current session, just like gnome-control-center display
does.
PS: I want to make a script to set the correct settings for my dual monitor setup without the need to open gnome-control-center display
everytime I boot my PC, and setting all the options again (tiring).
xrandr -q
to list all modes and outputs.