lock and unlock the screen from a script