forked from Shinonome/dots-hyprland
Brightness: brightnessctl target backlight class
This commit is contained in:
@@ -120,7 +120,7 @@ Singleton {
|
|||||||
|
|
||||||
function syncBrightness() {
|
function syncBrightness() {
|
||||||
const rounded = Math.round(monitor.brightness * monitor.rawMaxBrightness);
|
const rounded = Math.round(monitor.brightness * monitor.rawMaxBrightness);
|
||||||
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "s", rounded, "--quiet"];
|
setProc.command = isDdc ? ["ddcutil", "-b", busNum, "setvcp", "10", rounded] : ["brightnessctl", "--class", "backlight", "s", rounded, "--quiet"];
|
||||||
setProc.startDetached();
|
setProc.startDetached();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user