mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 06:22:50 -05:00
Added mirroring option to display configuration (#1156)
* <quickshell/Modules/Settings/DisplayConfig>: Added mirroring option to the displayconfiguration * removed niri option for mirroring * Fix trailing whitespace * removed emty rows --------- Co-authored-by: Postboote1 <stoessel.matthias>
This commit is contained in:
@@ -10,7 +10,7 @@ import qs.Services
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
readonly property bool hasOutputBackend: WlrOutputService.wlrOutputAvailable
|
||||
readonly property bool hasOutputBackend: WlrOutputService.wlrOutputAvailable
|
||||
readonly property var wlrOutputs: WlrOutputService.outputs
|
||||
property var outputs: ({})
|
||||
property var savedOutputs: ({})
|
||||
@@ -238,6 +238,11 @@ Singleton {
|
||||
if (sdrSaturationMatch)
|
||||
sdrSaturation = parseFloat(sdrSaturationMatch[1]);
|
||||
|
||||
let mirror = "";
|
||||
const mirrorMatch = rest.match(/,\s*mirror,\s*([^,\s]+)/);
|
||||
if (mirrorMatch)
|
||||
mirror = mirrorMatch[1];
|
||||
|
||||
result[name] = {
|
||||
"name": name,
|
||||
"logical": {
|
||||
@@ -261,7 +266,8 @@ Singleton {
|
||||
"colorManagement": cm,
|
||||
"sdrBrightness": sdrBrightness,
|
||||
"sdrSaturation": sdrSaturation
|
||||
}
|
||||
},
|
||||
"mirror": mirror
|
||||
};
|
||||
}
|
||||
return result;
|
||||
@@ -573,6 +579,8 @@ Singleton {
|
||||
result[outputName].logical.transform = changes.transform;
|
||||
if (changes.vrr !== undefined)
|
||||
result[outputName].vrr_enabled = changes.vrr;
|
||||
if (changes.mirror !== undefined)
|
||||
result[outputName].mirror = changes.mirror;
|
||||
}
|
||||
return normalizeOutputPositions(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user