[ubuntu-in] ubuntu lullaby timer
Kingsly John
member+ubuntu at kingsly.net
Sat Jul 17 11:13:24 BST 2010
+++ 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/
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-in/attachments/20100717/a939060e/attachment.pgp
More information about the ubuntu-in
mailing list