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",
"notifications",
"backlight",
"backlight#tpacpi",
"backlight#keyboard",
"volume",
"buttons-grid"
],
@ -80,16 +80,29 @@
"image-size": 96,
"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": {
"label": "",
"device": "intel_backlight",
"min": 10
},
"backlight#tpacpi": {
"backlight#keyboard": {
"label": "",
"device": "tpacpi::kbd_backlight",
"subsystem": "leds"
},
{{- end }}
"volume": {
"label": ""
},