9 lines
209 B
Bash
Executable File
9 lines
209 B
Bash
Executable File
#!/bin/bash
|
|
#cut the percent out of acpi
|
|
batt=`acpi -b`
|
|
batt=($batt)
|
|
#echo "#[fg=red]♥♥♥#[fg=white]♥♥♥#[fg=black] ${batt[3]}"
|
|
batt="${batt[3]}"
|
|
##Nur Substring bis zum ersten Komma.
|
|
echo ${batt%,}
|