upower --dump | grep --color=never -E "state|to\ full|to\ empty|percentage"
结果:
state: charging
time to full: 3.2 hours
percentage: 6%
upower --dump | grep --color=never -E "state|to\ full|to\ empty|percentage"
结果:
state: charging
time to full: 3.2 hours
percentage: 6%