8 lines
175 B
Bash
Executable File
8 lines
175 B
Bash
Executable File
#!/bin/bash
|
|
|
|
prct=$(acpi | grep 'Discharging' | awk '{print $4}' | sed 's/,//')
|
|
batid=$(acpi | grep 'Discharging' | awk '{print $2}' | sed 's/://')
|
|
|
|
echo "BAT$batid $prct -"
|
|
|