Switching Between Laptop and Monitor Displays
I am trying to setup Fedora to replicate my Windows Setup, but cant seem to work it out.
In windows I have it configured so that if I have an external Monitor connected that my Laptop screen is diabled and the External is at highest Res, but as soon as I disconnect my Monitor it enables the internal Monitor, can anyone tell me how I can do this with Fedora.
I think I need to use xrandr but could do with some pointers on how to write the script, my ideas are as follows
A continuously running script that has variable that holds if external monitor is connected, that checks every few seconds to see if monitor is disconencted (not sure how to do this) and if it is chnage the value of the variable and then run the relavant xrandr command.
Can anyone help,