SUMMARY It seems kscreen-doctor is not able to set or unset the primary status of a monitor. This is clear from the parsePositionalArgs() function in doctor.cpp. I am assuming this is an oversight. If so, please enable support for like output.MONITOR.primary.true/false (or something better). STEPS TO REPRODUCE 1. kscreen-doctor output.DP-4.Primary.true OBSERVED RESULT Unable to parse arguments: output.DP-4.Primary.true EXPECTED RESULT Set DP-4 as primary monitor. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro KDE 5.20.5 KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78/0 Qt Version: 5.15.2 ADDITIONAL INFORMATION None
The primary thing is a little bit weird; because you can't unset it, you can only do "kscreen-doctor output.DP-4.primary" to set an output to primary and the current primary output to not-primary. You can also set the priority numbers nowadays though, so I consider this solved more nicely already.