mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
brightness check ddcutil existence
This commit is contained in:
parent
586ad197ae
commit
9c4aa27dcb
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ for (let i = 0; i < service.length; i++) {
|
|||
service[i] = new BrightnessDdcService(ddcSnBus[monitorSn]);
|
||||
break;
|
||||
case "auto":
|
||||
if (monitorSn in ddcSnBus)
|
||||
if (monitorSn in ddcSnBus && !!exec(`bash -c 'command -v ddcutil'`))
|
||||
service[i] = new BrightnessDdcService(ddcSnBus[monitorSn]);
|
||||
else
|
||||
service[i] = new BrightnessCtlService();
|
||||
|
|
|
|||
Loading…
Reference in a new issue