Just read the /sys/class/power_supply/*/charge_now virtual file with cat
acpi
I use Arch btw
Sister communities:
Community rules
Please report posts and comments that break these rules!