laura@carboni:~$ upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"
state: discharging
percentage: 37%
laura@carboni:~$ upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"
state: charging
time to full: 3,0 hours
percentage: 36%
otra forma
laura@carboni:~$ acpi -V Battery 0: Charging, 38%, 01:03:31 until charged Battery 0: design capacity 5266 mAh, last full capacity 4733 mAh = 89% Adapter 0: on-line Thermal 0: ok, 53.0 degrees C Thermal 0: trip point 0 switches to mode critical at temperature 103.0 degrees C Cooling 0: x86_pkg_temp no state information available Cooling 1: intel_powerclamp no state information available Cooling 2: Processor 0 of 10 Cooling 3: Processor 0 of 10 Cooling 4: Processor 0 of 10 Cooling 5: Processor 0 of 10