Skip to content

Instantly share code, notes, and snippets.

@StuMx
Created June 22, 2011 07:44
Show Gist options
  • Save StuMx/1039658 to your computer and use it in GitHub Desktop.
Save StuMx/1039658 to your computer and use it in GitHub Desktop.
Apaga la pantlla y bloquea la maquina
##Necesita tener slock
echo " Apagando pantalla"
slock &
sleep 1 && xset dpms force off
proceso="pidof slock"
while $proceso
do
proceso="pidof slock"
if $proceso; then
xset dpms force off
sleep 5
fi
done
echo "Volviste! :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment