Skip to main content

Laptop de Despertador (en linux)

1- Configurar el bios de la maquina para que se auto-encienda a la hora predeterminada (en mi caso: 7:30 AM)

2- Configuro el GDM (login manager) para que automaticamente inicie con mi usuario en el primer boot.

3- Guardo una sesion en Gnome con los programas que quiero esten abiertos cuando inicie la maquina, entre ellos el rhytmbox (mi music player actual, puedes cambiar por xmms o tu preferido, solo recuerda editar el script).

4- Agrego la ruta del siguiente script a la lista de programas de inicio (en el administrador de sesiones) y le pongo la prioridad mas baja (ejecutar al final de todo), el script (recuerda hacerlo ejecutable):

#
#!/bin/bash
# Activamos el play para el rhythmbox, solo hasta que este completamente arriba.

while true; do
num_ritmo='ps -fea|grep rhytm|wc -l'
if [ "$num_ritmo" > "3" ]; then
#Cambiar aqui por el comando de tu media player
rhythmbox --play-pause
exit 0
else
echo "Esperando a que inicie completamente..."
sleep 1
fi
done
exit 0


Guardamos la sesion con el script en la lista de programas para activar al inicio y listo.
4- Reiniciamos y probamos. Si usas dual-boot, obviamente tendras que poner como default tu linux o lo que sea que uses.

Comments

Anonymous said…
if [ $# -eq 1 ]
then
echo "Introduce el aviso"
read AVISO
else
AVISO=$2
fi

while [ 1 ]
do
HORA_REAL=`date | tr -s " " | cut -f4 -d" "`

if [ $1 = $HORA_REAL ]
then
clear
mpg123 /home/grup7m/al7m06/cold.mp3
clear
echo $AVISO
break
fi
done
AnTiLo0p said…
hasta se podria conectar a Evolution para que te saque las citas del dia o algo por el estilo...

good idea!

Popular posts from this blog

46 vueltas al sol

 Pues eso, el dia de hoy cumplo 46 aƱos y este es el mejor regalo:

Sophie Baby Sounds Privacy Policy

Privacy Policy Rigoberto Reyes built the Sophie Baby Sounds app as a Free app. This SERVICE is provided by Rigoberto Reyes at no cost and is intended for use as is. This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Sophie Baby Sounds unless otherwise defined in this Privacy Policy. Information Collection and Use This  Service  does not require you to provide us with any personally identifiable information.  The  Service...