As you can see in lgnap/AutoScreenOnOff I made a feature to flip the behavior (so switch off when far switch on when close).
You should only discard the commit I made over remove some translations.
I don't know how to do that, this is why I did't make pull request.