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:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user