Laptops :: Battery



You need to edit .torsmorc which is in /home/dsl

To show that battery status you will need to check the name that the battery has. Assuming the system used acpi look in the folder /proc/acpi/battery. There will be another directory - something like BAT0, BAT1, MBAT,... You need to use this name in .torsmorc to show the battery status. Towards the end of .torsmorc you will find the line:
Code Sample
${color #ddd}Battery:  $color ${battery }

you need to add the name of the battery directory after 'battery ' inside the {} brackets, e.g.
Code Sample
${color #ddd}Battery:  $color ${battery MBAT}
is what is required on a Toshiba Libretto.


original here.