brightness service: don't spill brightnessctl output into logs

This commit is contained in:
end-4
2025-05-15 22:53:09 +02:00
parent c985273dc6
commit 7ec5c04130
+1 -2
View File
@@ -21,7 +21,6 @@ Singleton {
}
function increaseBrightness(): void {
console.log("increaseBrightness");
const focusedName = Hyprland.focusedMonitor.name;
const monitor = monitors.find(m => focusedName === m.screen.name);
if (monitor)
@@ -114,7 +113,7 @@ Singleton {
if (Math.round(brightness * 100) === rounded)
return;
brightness = value;
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`];
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`, "--quiet"];
setProc.startDetached();
}