internal: use execDetached for brightness

This commit is contained in:
2 * r + 2 * t 2025-07-12 17:29:20 +10:00
parent e9268415a1
commit 5dafbf5d21

View file

@ -57,10 +57,6 @@ Singleton {
} }
} }
Process {
id: setProc
}
CustomShortcut { CustomShortcut {
name: "brightnessUp" name: "brightnessUp"
description: "Increase brightness" description: "Increase brightness"
@ -96,8 +92,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}%`]; Quickshell.execDetached(isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`]);
setProc.startDetached();
} }
onBusNumChanged: { onBusNumChanged: {