Add battery level script
parent
54cc883f83
commit
7da5acc4d3
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
capacityStatus="$(cat /sys/class/power_supply/BAT0/capacity)"
|
||||||
|
|
||||||
|
printf "$capacityStatus%%"
|
Loading…
Reference in New Issue