Create battery

This commit is contained in:
Nefrace 2025-04-08 06:36:40 +03:00
parent 6dae1f8976
commit e7fc369f31
1 changed files with 8 additions and 0 deletions

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