Monday, July 24, 2006

Alarm Clock

/usr/bin/alarm

#!/bin/sh

# Uncomment if you want to use amaroK
#/usr/bin/dcop /usr/bin/amarok player play

#Uncomment if you do not want to use Mplayer
#/usr/bin/X11/xterm -display :0 -bg black -fg white #-e /usr/bin/mplayer -shuffle -playlist ~/.playlist

#/usr/bin/X11/xterm -display :0 -bg black -fg white #-e mplayer -playlist /location/to/file.asx

# Eterm solution#/usr/bin/Eterm -0 -e /usr/local/bin/mplayer # -shuffle -playlist ~/.playlist

# use xine to play
/usr/bin/X11/xterm -display :0 -bg black -fg white -e xine -f /file/to/video.wmv

# plays mp3s from playlist, no video
#mplayer -shuffle -playlist ~/.playlist


Create an entry in your crontab:
Min Hour Date Month Day of week Location to script
45 06 * * 1-5 /usr/local/bin/alarm

0 Comments:

Post a Comment

<< Home