Setting up Audio CDs to play automatically on F12

Please post all general support questions for LXDE here.
Locked
philip_rhoades
Posts: 6
Joined: Wed Mar 03, 2010 12:08 pm

Setting up Audio CDs to play automatically on F12

Post by philip_rhoades »

People,

How is this done? I would prefer to use LXDE if I can solve a couple of issues (another related post to follow).

Thanks,

Phil.
nicoseb
Posts: 5
Joined: Wed Apr 07, 2010 2:21 pm

Re: Setting up Audio CDs to play automatically on F12

Post by nicoseb »

Look at the post right before yours, about screenshot.

It should be easy to make your own F12 function in the file $HOME/.config/openbox/lxde-rc.xml

And you should execute a home made script looking like this
"mplayer cdda:// -cache 5000"

actually no need of a script, if you input that line in the lxde-rc.xml file it should work fine...

Let us know
philip_rhoades
Posts: 6
Joined: Wed Mar 03, 2010 12:08 pm

Re: Setting up Audio CDs to play automatically on F12

Post by philip_rhoades »

nicoseb,

Thanks for the reply but that solution still requires a key press?

I am talking about a CD starting to play as soon as you put it in the drive - like Gnome . .

Thanks,

Phil.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Setting up Audio CDs to play automatically on F12

Post by maces »

Just to get this clear, with F12 you mean Fedora 12?

maces
philip_rhoades
Posts: 6
Joined: Wed Mar 03, 2010 12:08 pm

Re: Setting up Audio CDs to play automatically on F12

Post by philip_rhoades »

Sorry,

Yes, I saw the key mapping stuff and thought the suggestion was for a function key. I had a closer look at the lxde-rc.xml file but I am still not sure where to put the line: "mplayer cdda:// -cache 5000" - and what tag should it have?

Thanks,

Phil.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Setting up Audio CDs to play automatically on F12

Post by maces »

Have a look at the examples:

Code: Select all

    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>PCManFM</name>
        </startupnotify>
        <command>pcmanfm</command>
      </action>
    </keybind>
you have to but it in "command".

maces
philip_rhoades
Posts: 6
Joined: Wed Mar 03, 2010 12:08 pm

Re: Setting up Audio CDs to play automatically on F12

Post by philip_rhoades »

maces,

That still looks like a keybinding to me but I don't know what the "W" in "W-e" would stand for (eg "C-A-d" is understandable). I am looking for an _automatic_ playing of the newly inserted audio CD.

Thanks,

Phil.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Setting up Audio CDs to play automatically on F12

Post by maces »

mhm. don't know, sry.

maces
Locked