Bug 432306

Summary: kscreen-doctor can't set or unset output.MONITOR.primary.true/false
Product: [Plasma] KScreen Reporter: datta.sandeep <datta.sandeep>
Component: kscreen-doctorAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description datta.sandeep@gmail.com 2021-01-30 09:34:23 UTC
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
Comment 1 Zamundaaa 2025-01-10 16:26:22 UTC
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.