Added charge status when fully charged in FreeBSD

This commit is contained in:
Mikael Hansson 2023-08-31 20:43:34 +02:00
parent a48d52b361
commit 9669d6e759

View File

@ -7,10 +7,12 @@ if [ "$os" = "FreeBSD" ]; then
clock=`date +'%Y-%m-%d %H:%M'` clock=`date +'%Y-%m-%d %H:%M'`
fi fi
if [ "$chargestate" = -1 ]; then if [ "$chargestate" = 2 ]; then
chargestatus=charging chargestatus="charging"
elif [ "$chargestate" = 0 ]; then
chargestatus="full/not charging"
else else
chargestatus=discharging chargestatus="discharging"
fi fi
echo "$chargestatus" - "$batterypercent"% - "$clock" echo "$chargestatus" - "$batterypercent"% - "$clock"