1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

incorporate ddcutil support

This commit is contained in:
bbedward
2025-08-19 11:06:11 -04:00
parent 8eb17c28b1
commit 0d8ae1e09b
4 changed files with 372 additions and 37 deletions

View File

@@ -118,14 +118,11 @@ PanelWindow {
name: {
const deviceInfo = BrightnessService.getCurrentDeviceInfo();
if (!deviceInfo || deviceInfo.class === "backlight") {
// Display backlight
if (!deviceInfo || deviceInfo.class === "backlight" || deviceInfo.class === "ddc") {
return "brightness_medium";
} else if (deviceInfo.name.includes("kbd")) {
// Keyboard brightness
return "keyboard";
} else {
// Other devices (LEDs, etc.)
return "lightbulb";
}
}