forked from Shinonome/dots-hyprland
brightness service: don't spill brightnessctl output into logs
This commit is contained in:
@@ -21,7 +21,6 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function increaseBrightness(): void {
|
function increaseBrightness(): void {
|
||||||
console.log("increaseBrightness");
|
|
||||||
const focusedName = Hyprland.focusedMonitor.name;
|
const focusedName = Hyprland.focusedMonitor.name;
|
||||||
const monitor = monitors.find(m => focusedName === m.screen.name);
|
const monitor = monitors.find(m => focusedName === m.screen.name);
|
||||||
if (monitor)
|
if (monitor)
|
||||||
@@ -114,7 +113,7 @@ Singleton {
|
|||||||
if (Math.round(brightness * 100) === rounded)
|
if (Math.round(brightness * 100) === rounded)
|
||||||
return;
|
return;
|
||||||
brightness = value;
|
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();
|
setProc.startDetached();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user