5 lines
103 B
Bash
5 lines
103 B
Bash
# Print current battery level.
|
|
function battery_level() {
|
|
cat /sys/class/power_supply/BAT*/capacity
|
|
}
|