alarmclock-CLI-v1.1.pup
alarmclock-CLI-v1.0.pup
alarmclock-CLI-v0.5.pup
Current version is 1.1.
Code: Select all
Usage: alarmclock-CLI [-t HH:MM]|[-H hour -M minute] [-s|-f song/file] [-a app]
[-c] [-q --quiet] [-h]
-h --help Show this message
-t The time for the alarm to go off, in 24-hour format: HH:MM
-s -f The path to the song or file you want the alarm to use
default=/usr/share/audio/error.wav
-a --app The application to run when the alarm goes off
default=defaultmediaplayer
-c Prompts for a custom command
-q Causes the alarm to not run any apps
alternate time format:
-H The hour you wish for the alarm to go off (in 24-hour time)
-M The minute you wish for the alarm to go off
examples:
alarmclock-CLI -t 9:55
alarmclock-CLI -t 4:15 -q
alarmclock-CLI -H 17 -M 30
alarmclock-CLI -t 22:00 -a firefox -f http://www.murga-linux.com/puppy/
alarmclock-CLI -t 14:12 -s /root/JukeBox/SimCity/SC2Ktheme.ogg
alarmclock-CLI -t 12:01 -a mplayer -f /mnt/sda7/cartoons/MegasXLR/xlr-intro.mov
alarmclock-CLI -t 15:27 -c
Please type the command and hit enter:
for i in *; do mv "$i" "${i}.file"; done
Original post for version 0.5
This is an alarm clock that runs in a terminal window. It isn't fancy, just something I whipped togeather in under an hour. You type a command like this:
Code: Select all
alarmclock-CLI -H 18 -M 30 -s /root/music/coolsong.mp3
-h will display a help message.
-q will make it not play the music.
It doesn't run in the background (yet) or have a fancy gui (yet) or show a count-down. That's why it's version 0.5. It's half done, but entirely usable. It does say how many seconds it will take before it goes off when you set it, though
I will augment this when I get the chance, hopefully adding a gui and maybe multi-day support and stuff. I don't have a lot of time, though, so don't hold your breath. If anyone wants to modify this on their own, go ahead. That's the fun of open-source.
Oh, it installs to /usr/local/bin/ and is named alarmclock-CLI, in case you need to find it. I haven't added any uninstall capabilities yet either (it's only a small textfile anyway).
Enjoy!