Brightness fix: Use percentage brightness to handle multiple devices correctly

This commit is contained in:
imitoy
2025-11-09 16:10:24 +08:00
parent 3502e46d19
commit 11fa846ae1
@@ -110,7 +110,7 @@ Singleton {
function initialize() {
monitor.ready = false;
initProc.command = isDdc ? ["ddcutil", "-b", busNum, "getvcp", "10", "--brief"] : ["sh", "-c", `echo "a b c $(brightnessctl g --device intel_backlight) $(brightnessctl m --device intel_backlight)"`];
initProc.command = isDdc ? ["ddcutil", "-b", busNum, "getvcp", "10", "--brief"] : ["sh", "-c", `echo "a b c $(brightnessctl g) $(brightnessctl m)"`];
initProc.running = true;
}