LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2005, 02:12 AM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Simple Alarm Clock


Look at this simple command for an alarm clock I found, haha.

sleep FOOh && watch -n 1 aplay /usr/share/sounds/gaim/redalert.wav

Just replace the "FOO" with a number that will equal the number of hours before it goes off, and replace the redalert.wav with your own personal sound file.

Last edited by dudeman41465; 10-10-2005 at 02:34 AM.
 
Old 10-10-2005, 03:42 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You could alsu use cron to have an alarm go off ever <insert regular time interval here>
 
Old 10-12-2005, 09:40 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Or "at" if you want to wake up only once.

Now who invents the "snooze" button?

jlinkels
 
Old 10-12-2005, 10:02 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
nice command line! But I prefer xmms-alarm plugin
 
Old 10-12-2005, 11:40 AM   #5
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
I like it!
It's slick.
 
Old 10-12-2005, 11:47 AM   #6
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Code:
slackerlx@linux:~> sleep F01h && watch -n 1 aplay /usr/share/sounds/gaim/redalert.wav
sleep: invalid time interval `F01h'
slackerlx@linux:~>
Care to give ab example of using F00
 
Old 10-12-2005, 12:42 PM   #7
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
I think you're taking him too literally.
Replace FOO with your number.

So use
Quote:
sleep 1h && watch -n 1 aplay /usr/share/sounds/gaim/redalert.wav
 
Old 10-12-2005, 01:03 PM   #8
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
tnx
Hmmm... I still think xmmx-alarm is better. Has exact time with minutes to set and playlist to choose. Starts sound with 25% and go up

Last edited by SlackerLX; 10-12-2005 at 01:05 PM.
 
Old 10-12-2005, 01:08 PM   #9
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
I use KAlarm (from Gnome ). Never failed to wake me up, EVER.

(I sleep like a corpse)

-A
 
Old 10-12-2005, 01:37 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I have my sweetums wake me up and she's not built like Tux either.

Kinda like that song...
Wake me up early, be good to my dogs and teach my children to pray....
 
Old 12-12-2005, 07:04 PM   #11
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
i think the credit for that line up there goes to:

'jon "desplesda" manning" (http://www.ids.org.au/~jam6/?m=200507)

nice indeed though
 
Old 10-06-2006, 11:33 PM   #12
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Well, actually built-in alarm script in Amarok works exclusively good.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit status - Alarm clock?!?!?! edhellaby Mandriva 0 10-29-2005 11:40 AM
linux alarm clock? DJOtaku Linux - General 1 02-16-2005 01:41 AM
Simple way to calibrate hardware clock? r_jensen11 Linux - Hardware 1 06-24-2004 04:33 PM
Using cron to exec MP3 for alarm clock. ex0r Linux - Newbie 20 02-26-2004 12:55 AM
Linux Alarm Clock?? Scruff Linux - General 3 09-02-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration