Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am using the alarm-clock application and the alarm-clock-applet, and the only frequency I can set, are for days of the week. I want an hourly alarm, is there any way to do that? Googling did not provide any answers, neither did AU, seems like no one has asked this question ever before. ATM, I use crontab to fire a notify-send each hour. Any other application/methods?


share|improve this question

3 Answers 3

up vote 1 down vote accepted

Keyboard preferences has a typing break monitor that can be triggered hourly. Doesn't trigger if you have breaks in your work.

If it doesn't fit your needs it may be a good starting point to develop your own alarm.

share|improve this answer

Sounds like an App request to me Kaustubh or at least a feature request for alarm-clock Install alarm-clock in the mean time for anyone who doesn't understand cron you can use the gnome-schedule Install gnome-schedule application to give you a gui way of adding your reminders.

share|improve this answer

You can use the below python script not only for setting an hourly alarm, but for setting an alarm with any time interval. Firstly create a new file, using vi . Then paste the following code in the file,

#!/usr/bin/env python2 import pynotify from pygame import mixer from time import sleep def sendmessage(title, message): pynotify.init("Test") notice = pynotify.Notification(title, message) return while True: mixer.init() #you must initialize the mixer alert=mixer.Sound('beep.wav') #name of the sound file is beep.wav sendmessage("ALARM!!", "1 hour up!") sleep(3600)

Here, beep.wav is the name of the sound file which should also be in the same directory as of the file (preferably home folder). You can download any beep sound file of your choice from the internet.

Now make the file executable by,

chmod +x

Now to run this in background,

nohup /home/'username'/ &

(this is when is in the home folder, use the appropriate file address as required)

and hit Enter twice. Now this process will be running in background, if you want to stop this, type,

ps ax| grep 

and type,

kill process_id

Currently, the time interval is 1 hour. If you want to change it, change the line sleep(3600) to sleep(no_of_seconds) [IN this case, 3600 = 60*60 seconds = 1 hour.]

Hope it helped!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.