diff --git a/.screen/mail b/.screen/mail index 3ace8ff..d1492e9 100755 --- a/.screen/mail +++ b/.screen/mail @@ -47,7 +47,7 @@ while [ "$( ps | grep $parent)" ]; do printf "%s", "\005{+ mw}[\005{+b}" } { - total += total + ( $1 - $2 ) + total = ( $1 - $2 ) count += $1 printf "%d ", total } @@ -58,11 +58,6 @@ while [ "$( ps | grep $parent)" ]; do printf "%s%d%s", "\005{+ my}!", count, "\005{-}" printf "\n" - - if ( total > 0 ) - print "mail" > "/tmp/.keyind" - else - print "" > "/tmp/.keyind" }' sleep 30