+++ Linux Lingam [2010-07-16 16:51:35]:

> dear all,
> 
> i'd love to drift to sleep listening to some audio or music playing via 
> mplayer
> on my ubuntu 9.04,
> but obviously, once asleep, don't want to get up to quit mplayer and shutdown
> the laptop.
> likewise, i'd also love to wake up to mplayer after the laptop autoboots into
> ubuntu.
> 
> any way of doing this automagically?

I used to use this to wake me up (Modify to suit your tastes!)

#/bin/sh

aumix -w 10
aumix -v 10

ogg123 -qz ~/Music/Vivaldi\,\ Antonio/The\ Four\ Seasons\ and\ Violin\ 
Concertos/*flac &

for vol in `seq 1 9` 
do
        aumix -w +10
        aumix -v +10
        sleep 5
done
## End of Script ##

Save it as wakeup.sh

 and 

at -f wakeup.sh now+5 hours

or 

at -f wakeup.sh 5am 
(man at for more funky time options)

You can do the whole volume thing with negative values and longer sleeps to
create a lullaby.sh script

Kingsly

-- 
---------------------------------------------------------------------------
     Kingsly At Users Dot SourceForge Dot Net  -- http://kingsly.org/
---------------------------------------------------------------------------

Attachment: pgprMdu8A1hof.pgp
Description: PGP signature

-- 
ubuntu-in mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in

Reply via email to