fixed #25
This commit is contained in:
parent
70fd9a042c
commit
80b710bd03
2 changed files with 4 additions and 2 deletions
|
@ -1 +1 @@
|
||||||
☁ 57° Pleasanton, CA
|
☀ 100° Pleasanton, CA
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
linux_acpi() {
|
linux_acpi() {
|
||||||
arg=$1
|
arg=$1
|
||||||
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
|
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
|
||||||
|
@ -28,6 +29,7 @@ linux_acpi() {
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
battery_percent()
|
battery_percent()
|
||||||
{
|
{
|
||||||
# Check OS
|
# Check OS
|
||||||
|
@ -69,7 +71,7 @@ battery_status()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$status" = 'discharging' ]] || [[ "$status" = 'Discharging' ]]; then
|
if [ $status = 'discharging' ] || [ $status = 'Discharging' ]; then
|
||||||
echo ''
|
echo ''
|
||||||
else
|
else
|
||||||
echo 'AC '
|
echo 'AC '
|
||||||
|
|
Loading…
Reference in a new issue