diff --git a/prefs.ui b/prefs.ui index ab07185..537decf 100644 --- a/prefs.ui +++ b/prefs.ui @@ -1222,6 +1222,7 @@ <item translatable="yes">BAT0</item> <item translatable="yes">BAT1</item> <item translatable="yes">BAT2</item> + <item translatable="yes">BATT</item> <item translatable="yes">CMB0</item> <item translatable="yes">macsmc-battery</item> </items> diff --git a/sensors.js b/sensors.js index d3854d5..10f93c7 100644 --- a/sensors.js +++ b/sensors.js @@ -378,9 +378,11 @@ export const Sensors = GObject.registerClass({ // addresses issue #161 let battery_key = 'BAT'; // BAT0, BAT1 and BAT2 if (battery_slot == 3) { + battery_slot = 'T'; + } else if (battery_slot == 4) { battery_key = 'CMB'; // CMB0 battery_slot = 0; - } else if (battery_slot == 4) { + } else if (battery_slot == 5) { battery_key = 'macsmc-battery'; // supports Asahi linux battery_slot = ''; }