From e7260c0f227ee5949c20f74621cc46fd06340dc6 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 24 Sep 2024 11:49:03 -0700 Subject: [PATCH] thinkpads: fix polybar battery module for t480 --- hosts/thinkpads/polybar.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/thinkpads/polybar.nix b/hosts/thinkpads/polybar.nix index b20d910..aeae25b 100644 --- a/hosts/thinkpads/polybar.nix +++ b/hosts/thinkpads/polybar.nix @@ -15,7 +15,11 @@ in with theme.colors; }; "module/battery" = { type = "internal/battery"; - battery = "BAT0"; + # battery = "BAT0"; + # TODO: either separate t480 config or decomission old ThinkPads + # This battery parameter is different between them + # Use `ls -1 /sys/class/power_supply/` to check available power devices + battery = "BAT1"; adapter = "AC"; format-low = " ";