Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
cat /proc/acpi/battery/BAT1/state
Original von xeno
alternativ einfach nur "acpi"
Original von Heinzelotto
Original von xeno
alternativ einfach nur "acpi"
ne, zu umständlich
echo "$(wcalc "`cat /proc/acpi/battery/BAT0/state | grep "remaining capacity" | awk '{print $3}'` / `cat /proc/acpi/battery/BAT0/info | grep "last full capacity" | awk '{print $4}'` * 100" | awk '{print $2}' | awk -F. '{print $1}')%"