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
- debian bookworm: cdde 0.3.1-1+b2
- ubuntu jammy: cdde 0.3.1-1build1
- ubuntu noble: cdde 0.3.1-1.1
- ubuntu resolute: cdde 0.3.1-2 Β· GPL-2.0-or-later
- ubuntu stonking: cdde 0.3.1-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms