System ArchLinux, search battery related software has the following
Extra/xfce4-battery-plugin 1.0.5-4 (xfce4-goodies) A Battery Monitor plugin for the XFCE panelcommunity/acpi 1.7-1 [already Install] Client for battery, power, and thermal Readingscommunity/cbatticon 1.5.0-1 Lightweight and fast battery icon T Hat sits in your system Traycommunity/ibam 0.5.2-8 an intelligent battery monitorcommunity/osdbattery 1.4-6 Displays battery information in the OSD style
I have ACPI installed, and the direct terminal uses the ACPI command to display the remaining power percentage and time
Also can not use the program, directly view the file, the battery-related directory is/sys/class/power_supply/bat1/(the old directory is/proc/acpi/battery/bat0/)
In this directory, capacity is the remaining percentage, and other files, such as recording the charge, discharge status, etc.
Reference
Linux Terminal view Laptop battery charge