helper script for screenlock and suspend