Added charge status when fully charged in FreeBSD
This commit is contained in:
parent
a48d52b361
commit
9669d6e759
@ -7,10 +7,12 @@ if [ "$os" = "FreeBSD" ]; then
|
||||
clock=`date +'%Y-%m-%d %H:%M'`
|
||||
fi
|
||||
|
||||
if [ "$chargestate" = -1 ]; then
|
||||
chargestatus=charging
|
||||
if [ "$chargestate" = 2 ]; then
|
||||
chargestatus="charging"
|
||||
elif [ "$chargestate" = 0 ]; then
|
||||
chargestatus="full/not charging"
|
||||
else
|
||||
chargestatus=discharging
|
||||
chargestatus="discharging"
|
||||
fi
|
||||
|
||||
echo "$chargestatus" - "$batterypercent"% - "$clock"
|
||||
|
Loading…
Reference in New Issue
Block a user