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