Add battery level script

master
Hektor Misplon 2021-12-31 16:01:55 +01:00
parent 54cc883f83
commit 7da5acc4d3
1 changed files with 5 additions and 0 deletions

5
.bin/check-battery-level Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
capacityStatus="$(cat /sys/class/power_supply/BAT0/capacity)"
printf "$capacityStatus%%"