diff --git a/status.sh b/status.sh index 7e97aec..6be0ded 100755 --- a/status.sh +++ b/status.sh @@ -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"