This application is just a python script that starts playback with mplayer and stops as soon as you hit the keyboard. The goal is to have your computer behave like a real alarm clock that you can hit in the dark :) the time stuff is handled by gnome-schedule, whose job is to launch this script, "knock-clock".
knock-clock has the following dependencies: mplayer-nogui, gnome-schedule, gnome-terminal, and a working internet connection if you plan to leave the default "TARGET" setting. If your network connection is not available at the Moment of Awakening, knock-clock will instead play the terrible Ubuntu saxophone song in /usr/share/example-content/
To set it up:
sudo apt-get install mplayer-nogui gnome-terminal gnome-schedule bzr
bzr branch http://code.ecchi.ca/knock-clock
(for geeks)sudo mv knock-clock /usr/bin/knock-clock
sudo chmod +x /usr/bin/knock-clock
or chmod +x knock-clock
export DISPLAY=:0 && gnome-terminal -x knock-clock
Knock Clock is Free and Open Source software by Jean-François Fortin Tam, distributed under the GNU GPL v3 license.