From d16a30e7906bc69cd6cf5c17a5b3ac5c07803703 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sun, 25 May 2025 01:47:59 +0200 Subject: [PATCH] add backlight and backlight keyboard feature for macbooks --- .../swaync/{config.json => config.json.tmpl} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename dot_config/swaync/{config.json => config.json.tmpl} (90%) diff --git a/dot_config/swaync/config.json b/dot_config/swaync/config.json.tmpl similarity index 90% rename from dot_config/swaync/config.json rename to dot_config/swaync/config.json.tmpl index dbe76d6..641d0cb 100644 --- a/dot_config/swaync/config.json +++ b/dot_config/swaync/config.json.tmpl @@ -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": "" },