You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, September 12th 2006, 12:52am

Howto: auto-play CD with Xmms in KDE

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

This post has been edited 1 times, last edit by "fozner" (Sep 12th 2006, 1:00am)