fix setting brightness with brightnessctl

This commit is contained in:
end-4
2025-09-11 23:25:06 +02:00
committed by GitHub
parent 9a7f5c2def
commit 2f369bbf3d
@@ -109,7 +109,7 @@ Singleton {
if (Math.round(brightness * monitor.maxBrightness) === rounded)
return;
brightness = value;
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`, "--quiet"];
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", rounded, "--quiet"];
setProc.startDetached();
}