Add commented quick controls to test/show battety status

This commit is contained in:
ItsDrike 2023-01-25 02:13:50 +01:00
parent 56140d624f
commit 10f0e3eb91
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 10 additions and 1 deletions

View file

@ -45,6 +45,14 @@ capacity="$(get_bat_info capacity)"
status="$(get_bat_info status)"
[ "$(get_adp_info online)" -eq 1 ] && adp_connected="true" || adp_connected="false"
# Quick overrides to showcase how battery works
# capacity=100
# adp_connected="true"
# status="Charging"
# status="Not charging"
# status="Discharging"
full="false"
capacity_icon="$(pick_icon "$capacity" 0 100 "${CAPACITY_ICONS[@]}")"
@ -61,6 +69,7 @@ fi
[ "$capacity" -le "$CRITICAL_PERCENTAGE" ] && critical="true" || critical="false"
jq -n -c --monochrome-output \
--arg percent "$capacity" \
--arg plugged "$adp_connected" \