Hi!
I’m trying to create a script (and shortcuts) to switch between differents display setting for my laptop and external monitor. I used kscreen-doctor to set the “laptop only” mode, and also the “mirrored display” mode. But I cannot reliably get the external monitor to be above my laptop screen.
The position and resolution setting works fine when the “replica of” setting of the external monitor is set via the GUI to “none”. But that setting tends to be set back to replicate the laptop screen when restarting or disconnecting, and then kscreen-doctor can’t seem to bypass that setting , so the screens just stay mirrored.
So my question is : how can that settings be modified by a script or command line ?
Or is there a better way than using kscreen-doctor?
I tested a bit, and these commands actually do work for me!
Albeit that’s on Plasma 6.8 - I can’t see an obvious difference between 6.7 and 6.8 as far as this code goes, but it could be that something’s different.