add backlight and backlight keyboard feature for macbooks

This commit is contained in:
Simon Rieger 2025-05-25 01:47:59 +02:00
parent 8eb76c60fa
commit d16a30e790

View file

@ -54,7 +54,7 @@
"mpris", "mpris",
"notifications", "notifications",
"backlight", "backlight",
"backlight#tpacpi", "backlight#keyboard",
"volume", "volume",
"buttons-grid" "buttons-grid"
], ],
@ -80,16 +80,29 @@
"image-size": 96, "image-size": 96,
"image-radius": 12 "image-radius": 12
}, },
{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arm64") }}
"backlight": {
"label": "",
"device": "apple-panel-bl",
"min": 10
},
"backlight#keyboard": {
"label": "",
"device": "kbd_backlight",
"subsystem": "leds"
},
{{- else }}
"backlight": { "backlight": {
"label": "", "label": "",
"device": "intel_backlight", "device": "intel_backlight",
"min": 10 "min": 10
}, },
"backlight#tpacpi": { "backlight#keyboard": {
"label": "", "label": "",
"device": "tpacpi::kbd_backlight", "device": "tpacpi::kbd_backlight",
"subsystem": "leds" "subsystem": "leds"
}, },
{{- end }}
"volume": { "volume": {
"label": "" "label": ""
}, },