1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-09 15:05:39 -05:00

General code cleanups

This commit is contained in:
bbedward
2025-08-02 16:18:12 -04:00
parent 2cf7497324
commit 599118c63e
68 changed files with 102 additions and 1241 deletions

View File

@@ -22,7 +22,7 @@ Singleton {
laptopBrightnessProcess.command = ["brightnessctl", "set", brightnessLevel + "%"];
laptopBrightnessProcess.running = true;
} else if (ddcAvailable) {
console.log("Setting DDC brightness to:", brightnessLevel);
Quickshell.execDetached(["ddcutil", "setvcp", "10", brightnessLevel.toString()]);
}
}
@@ -66,7 +66,7 @@ Singleton {
onExited: function(exitCode) {
if (exitCode !== 0) {
console.warn("Failed to set laptop brightness, exit code:", exitCode);
}
}
}
@@ -87,7 +87,7 @@ Singleton {
onExited: function(exitCode) {
if (exitCode !== 0) {
console.warn("Failed to get laptop brightness, exit code:", exitCode);
}
}
}
@@ -108,7 +108,7 @@ Singleton {
onExited: function(exitCode) {
if (exitCode !== 0) {
console.warn("Failed to get max laptop brightness, exit code:", exitCode);
}
}
}
@@ -133,7 +133,7 @@ Singleton {
onExited: function(exitCode) {
if (exitCode !== 0) {
console.warn("Failed to get DDC brightness, exit code:", exitCode);
brightnessLevel = 75;
}
}