First, set up xmms to play a CD whenever you type the command:
xmms -p /media
Here's how:
http://facilities.cs.utexas.edu/htdoc/faqs/multimedia.html
Now go to Control Center, Periphals, Storage Media
Click add
Under Edit service, change icon to speaker )))
change name to "Play in Xmms"
Under Available medium types, click on Audio CD
Click the arrow button to have it show up under "Display service for"
In the command box, type "xmms -p /media"
click ok
hit apply
insert a CD and choose "Play in Xmms"
if it works, re-insert CD and choose always use this action
After you have autoplay working the way you want, you might want to eject the CD with a hotkey.
This script unmounts the drive, ejects the CD and stops xmms
|
Source code
|
1
2
3
4
|
#/bin/sh
umount /dev/cdwriter
eject cdwriter
pkill xmms
|
(might have to use cdrom instead of cdwriter)
Name it ejectcd.sh and make it executable:
# chmod +x
.
Bind it to a hotkey using your window manager. I use CTRL-SHIFT-DOWN
http://comptune.com/forums/viewtopic.php?t=239