6 lines
111 B
Plaintext
6 lines
111 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
capacityStatus="$(cat /sys/class/power_supply/BAT0/capacity)"
|
||
|
|
||
|
printf "$capacityStatus%%"
|