internal: use execDetached for brightness
This commit is contained in:
parent
e9268415a1
commit
5dafbf5d21
1 changed files with 1 additions and 6 deletions
|
|
@ -57,10 +57,6 @@ Singleton {
|
|||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: setProc
|
||||
}
|
||||
|
||||
CustomShortcut {
|
||||
name: "brightnessUp"
|
||||
description: "Increase brightness"
|
||||
|
|
@ -96,8 +92,7 @@ Singleton {
|
|||
if (Math.round(brightness * 100) === rounded)
|
||||
return;
|
||||
brightness = value;
|
||||
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`];
|
||||
setProc.startDetached();
|
||||
Quickshell.execDetached(isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", `${rounded}%`]);
|
||||
}
|
||||
|
||||
onBusNumChanged: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue