Create battery

This commit is contained in:
2025-04-08 06:36:40 +03:00
parent 6dae1f8976
commit e7fc369f31

8
bin/battery Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
BAT=$(acpi -b | grep "Battery $1" | rg "(\d?\d\d)%" -or '$1')
echo BAT$(($1 + 1)): $BAT
exit 0