mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-21 00:09:58 -05:00
fix setting brightness with brightnessctl
This commit is contained in:
@@ -109,7 +109,7 @@ Singleton {
|
|||||||
if (Math.round(brightness * monitor.maxBrightness) === rounded)
|
if (Math.round(brightness * monitor.maxBrightness) === rounded)
|
||||||
return;
|
return;
|
||||||
brightness = value;
|
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();
|
setProc.startDetached();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user