coin:-/home/bling182% acpi | cut -d' ' -f 4

> 100%
>
> chezmoicamarche.org
>
> Et c'est merveilleux, meme avec
> Battery 0: Charging, 73%, 00:28:17 until charged
> Battery 0: Full, 100%
> Battery 0: Discharging, 74%, 04:37:36 remaining
> ca fonctionne toujours.
>

echo "Battery 0: Discharging, 74%, 04:37:36 remaining" | cut -d' ' -f 4
74%,

Marche pas :)

C'est plus intéressant de passer par /sys/class/power_supply/

Répondre à