4 lines
93 B
Bash
4 lines
93 B
Bash
|
#!/bin/dash
|
|||
|
read -r capacity </sys/class/power_supply/BAT0/capacity
|
|||
|
echo "${capacity}%"
|