---
src/config.zig | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/config.zig b/src/config.zig
index 1eb5f4f..050db5c 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -128,32 +128,50 @@ pub const status_height = 20;
pub const files_status = [_][]const u8{
"/sys/class/power_supply/axp20x-battery/capacity",
"/sys/class/power_supply/BAT0/capacity",
+
+ // Librem 5
+ "/sys/class/power_supply/max170xx_battery/capacity",
};
pub const files_led_red = [_][]const u8{
"/sys/class/leds/red:indicator/brightness",
"/sys/class/leds/tpacpi::thinklight/brightness",
+
+ // Librem 5
+ "/sys/class/leds/red:status/brightness",
};
pub const files_led_green = [_][]const u8{
"/sys/class/leds/green:indicator/brightness",
"/sys/class/leds/tpacpi::thinklight/power",
+
+ // Librem 5
+ "/sys/class/leds/green:status/brightness",
};
pub const files_led_blue = [_][]const u8{
"/sys/class/leds/blue:indicator/brightness",
"/sys/class/leds/input0::capslock/brightness",
+
+ // Librem 5
+ "/sys/class/leds/blue:status/brightness",
};
pub const folders_backlight = [_][]const u8{
"/sys/class/backlight/backlight",
"/sys/class/backlight/nv_backlight",
+
+ # Librem 5
+ "/sys/class/backlight/backlight-dsi",
};
pub const files_wakeupsources_enable = [_][]const u8{
// Power button
"/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup",
+ // Librem 5 Power button
+ "/sys/bus/platform/devices/30370000.snvs:snvs-powerkey",
+
// Modem ring GPIO
"/sys/devices/platform/gpio-keys/power/wakeup",
};
--
2.34.1