2022-12-12 15:59:27 +01:00
|
|
|
#!/bin/bash
|
2022-11-09 20:00:41 +01:00
|
|
|
|
2023-02-24 10:48:23 +01:00
|
|
|
prct=$(acpi | grep 'Discharging' | awk '{print $4}' | sed 's/,//')
|
|
|
|
batid=$(acpi | grep 'Discharging' | awk '{print $2}' | sed 's/://')
|
2022-11-09 20:00:41 +01:00
|
|
|
|
2023-02-24 10:48:23 +01:00
|
|
|
echo "BAT$batid $prct -"
|
2022-11-09 20:00:41 +01:00
|
|
|
|