When wireless device is asleep (charge 0), don't change dock color
Some checks failed
SSH and echo to file / ssh (push) Failing after 5s
Some checks failed
SSH and echo to file / ssh (push) Failing after 5s
This commit is contained in:
parent
d7e0928ca5
commit
a49ff589fa
@ -75,6 +75,9 @@ function get_charge_percentage() {
|
|||||||
tr -s ' ' |\
|
tr -s ' ' |\
|
||||||
cut -d' ' -f3
|
cut -d' ' -f3
|
||||||
)
|
)
|
||||||
|
if [[ $CHARGE == '0' ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
echo "CHARGE: $CHARGE" >&2
|
echo "CHARGE: $CHARGE" >&2
|
||||||
echo "$CHARGE"
|
echo "$CHARGE"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user