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 {
|
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: {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue