File: cdde.xml.5.in

package info (click to toggle)
cdde 0.3.1-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 504 kB
  • ctags: 73
  • sloc: sh: 995; ansic: 782; makefile: 17
file content (77 lines) | stat: -rw-r--r-- 2,377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.TH "cdde.xml" "5" "@VERSION@" "Eric Lathrop" ""
.SH "NAME"
.LP 
\fBcdde.xml\fR \- Configuration file for cdde
.SH "DESCRIPTION"
.LP 
When cdde is run for the first time, an example xml configuration file
(~/.cdde.xml) is created for you:

<?xml version="1.0"?>
.br
<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>
.br 
</cdde>

This default file is not very useful, and so I suggest you to edit it to your needs before
running cdde again.  You may add as many drive entries, or commands as you like.
If multiple entries are found for a type of disc then all entries will be
run in the order they are found.

The specific device in use can be passed to the command with one of the following special tags:

  %dev%  \-  is replaced with the device name of the cdrom that
            just had a disc inserted
            
  %mnt%  \-  is replaced with the listed mount point for the
            cdrom that just had a disc inserted
 
Note:   %mnt% is determined through your fstab (usually located in /etc) file. If you do not have a listing for each <drive> in the fstab this will cause problems.

This way, you can tell your video player which device to use when playing a VCD, for example.

.SH "EXAMPLE"
.LP
This is an example of \fB~/.cdde.xml\fR file:

<?xml version="1.0"?>
.br
<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>
.br
</cdde>
.SH "FILES"
.LP 
~/.cdde.xml
.SH "SEE ALSO"
.LP 
cdde(1)
.SH "AUTHORS"
.LP 
Eric Lathrop <eric@ericlathrop.com>
.br
Stanislav Maslovski <stanislav.maslovski@gmail.com>
.SH "WEBSITE"
For the latest release of cdde, see:
.br 
http://cdde.sourceforge.net/