Automatically disable laptop screen when docked

I have a laptop with a docking station and am running KDE Plasma 5 on Leap. I prefer to have the laptop screen off when docked and to have some things displayed larger when the laptop is undocked. I would really like to be able to change the whole setup of KDE when docked or undocked and have thus created scripts to symlink all the config files to different version for docked and undocked. After that they restart the plasmashell. This works fine but it does not seem to reload KScreen and thus my screens are all messed up when attaching to the dock but a reboot fixes this. Undocking is not a problem because the external screens are automatically disabled and the laptop one enabled. Is there any way that I can force KScreen to reload and reapply its config file? Otherwise, do I have nay other options?