I use here a laptop with an extended screen sometimes. First i needed to edit the configuration by Nvidia-settings to apply changes of my screen configuration, but now i have improved that by using Disper. That allows with one command to switch on/off the extended screen.
only single screen: disper -s , switch second screen on as extended screen: disper -e
Either i looking for a way to do this automatically. Is there something that can provide me a signal about hotplugging of screens? Something that is useful to trigger Disper?