9 lines
180 B
Bash
Executable File
9 lines
180 B
Bash
Executable File
#!/bin/bash
|
|
|
|
current=$(acpi --battery | sed -e 's/%.*//' | sed 's/.*, //')
|
|
status="$current%"
|
|
state=$(acpi --battery | sed -e 's/,.*//' | sed 's/.*: //')
|
|
|
|
|
|
echo "$current% $state"
|