mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-31 08:52:49 -05:00
niri: preserve remaining settings when turning off output
This commit is contained in:
@@ -69,7 +69,7 @@ Item {
|
|||||||
if (!toplevel.screens)
|
if (!toplevel.screens)
|
||||||
return false;
|
return false;
|
||||||
for (let i = 0; i < toplevel.screens.length; i++) {
|
for (let i = 0; i < toplevel.screens.length; i++) {
|
||||||
if (toplevel.screens[i].name === screenName)
|
if (toplevel.screens[i]?.name === screenName)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1147,8 +1147,7 @@ Singleton {
|
|||||||
kdlContent += `output "${identifier}" {\n`;
|
kdlContent += `output "${identifier}" {\n`;
|
||||||
|
|
||||||
if (niriSettings.disabled) {
|
if (niriSettings.disabled) {
|
||||||
kdlContent += ` off\n}\n\n`;
|
kdlContent += ` off\n`;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output.current_mode !== undefined && output.modes && output.modes[output.current_mode]) {
|
if (output.current_mode !== undefined && output.modes && output.modes[output.current_mode]) {
|
||||||
@@ -1157,7 +1156,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (output.logical) {
|
if (output.logical) {
|
||||||
kdlContent += ` scale ${output.logical.scale ?? 1.0}\n`;
|
kdlContent += ` scale ${output.logical.scale || 1.0}\n`;
|
||||||
|
|
||||||
if (output.logical.transform && output.logical.transform !== "Normal") {
|
if (output.logical.transform && output.logical.transform !== "Normal") {
|
||||||
const transformMap = {
|
const transformMap = {
|
||||||
|
|||||||
Reference in New Issue
Block a user