cdde.xml(5)

✨ cdde.xml β€” the manual page for section 5, bestie ✨

Okay so real quick: this is cdde.xml(5), the page about the configuration file for cdde. Yes, section 5, we're in file-formats territory, and honestly? It's giving cozy. Let's get into it. πŸ’–


🌸 NAME 🌸

cdde.xml β€” the configuration file for cdde, no cap.


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: the very first time you run cdde, it's gonna make you an example xml config file at ~/.cdde.xml. Like, it just does that. Here's exactly what it drops for you:

<?xml version="1.0"?>
<cdde delay="5000000">
  <drive path="/dev/cdrom">
    <audio command="echo An audio cd was inserted."/>
    <data command="echo A data cd was inserted."/>
    <dvd command="echo A dvd was inserted."/>
    <vcd command="echo A vcd was inserted."/>
    <svcd command="echo A svcd was inserted."/>
    <blank command="echo A blank cdr/dvdr was inserted."/>
    <mixed command="echo A mixed (audio/data) cd was inserted."/>
  </drive>
</cdde>

Now. Ngl, this default file is not very useful β€” the author literally says "I suggest you to edit it to your needs before running cdde again." So bestie, please go edit it. 🫢

The good news? You can add as many drive entries as you want, and as many commands as you want. Literally go feral. And if there are multiple entries for a type of disc, all of them get run, in the order they're found. Order matters, so don't be chaotic about it. πŸ’…

You can also pass the specific device in use to the command using one of these special tags:

  • %dev% β€” gets replaced with the device name of the cdrom that just had a disc inserted
  • %mnt% β€” gets replaced with the listed mount point for the cdrom that just had a disc inserted

Which means you can tell your video player which device to use when playing a VCD, for example. Iconic, honestly.

⚠️ Note: %mnt% is determined through your fstab file (usually located in /etc). If you do not have a listing for each <drive> in the fstab, this will cause problems. Not a vibe. Be careful. 😭

πŸŽ€ EXAMPLE πŸŽ€

Here's an example of what a ~/.cdde.xml file can look like:

<?xml version="1.0"?>
<cdde delay="5000000">
  <drive path="/dev/cdroms/cdrom0"/>
    <audio command="xmms %mnt%"/>
    <data command="mount %mnt%"/>
    <dvd
     command="xterm -iconic -e mplayer -fs -xineramascreen 1 -dvd 1"/>
    <vcd
     command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/>
    <svcd
     command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/>
    <blank command="gcombust"/>
    <mixed command="mount %mnt%"/>
  </drive>
</cdde>

Look at that. A whole mood. πŸ”₯


πŸ’œ FILES πŸ’œ

  • ~/.cdde.xml

That's it. That's the file. She's the main character.


🌈 SEE ALSO 🌈

Go read that one too, iykyk. ✨


πŸ‘‘ AUTHORS πŸ‘‘

The absolute legends who made this happen:

  • Eric Lathrop <eric@ericlathrop.com>
  • Stanislav Maslovski <stanislav.maslovski@gmail.com>

🌐 WEBSITE 🌐

For the latest release of cdde, see:

http://cdde.sourceforge.net/

Okay that's the whole page, bestie β€” you ate that. πŸ’– This lil manual was written by Eric Lathrop, it's version 0.3.1, and it belongs to the cdde.xml(5) family. Slay, go configure your drives, and remember: fstab first or it's over. πŸŽ€βœ¨

πŸ“¦ where this page comes from