Content-type: text/html Man page of xcd


Section: (1X)
Index Return to Main Contents


xcd - Motif based CD player control panel  


xcd [-options]



Specifies the raw device name of the CD hardware. If this option is not specified xcd uses the device name specified by your CDROM environment variable. Print the current xcd version number Specifies the color of the window's border (color displays only). The default is specified by means of the Session Manager's Customize Window dialog box. Specifies the color of the window's background (color displays only). The default is specified by means of the Session Manager's Customize Window dialog box. Specifies the display screen on which xcd displays its window. If the display option is not specified, xcd uses the display screen specified by your DISPLAY environment variable. The display option has the format hostname:number. Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport. The default is :0. For more information, see X(1X). This option is the same as the -d option. Specifies the color of the text (color displays only). The default is specified by means of the Session Manager's Customize Window dialog box. Specifies the font for all of the xcd menus. This option is overridden by the .Xdefaults file.


The xcd command displays a graphical representation of a compact disk player's control panel using X-based Motif windows. The display includes a main key pad with keys for PLAY, STOP, PAUSE, EJECT, NEXT TRACK, PREVIOUS TRACK, DISK ACCESS LOCK, REPEAT MODES, SHUFFLE MODE, and QUIT. A status window displays track and time information. A set of selection buttons, one for each track of an inserted CD, allow you to directly select a track to be played. The selection buttons double as a display of the play sequence with track now playing highlighted. A volume slider adjusts output volume across a scale of 0-100. The volume control on the CD drive itself should be set to full.

To use this program you need a workstation with a Compact Disk drive. The xcd program is not supported.

Most of the buttons on the control panel are self-explanatory. One, however, may not be obvious. The padlock button may be used to disable the eject button on the front of the CD drive. This can be used to discourage someone from ripping off your CD.

You can customize some aspects of xcd's appearance by specifying xcd resources in your ~/.Xdefaults file. Use the Xcd file as a template. This file is found in the /usr/lib/X11/app-defaults/ directory.

xcd will attempt to find the cd player on your machine. If you have multiple CD-ROM players on your machine, it will use the first one found. The method it uses is to start scanning the bus using CAM from low to high, so the lowest numbered CD-ROM on the lowest numbered bus will be the selected device. To override this selection, set the environment variable CDROM or the -cd option which will override this mechanism. For the automatic location of the CD device to work you must have read permission on the /dev/cam device. As superuser you should: # chmod 644 /dev/cam

You will need to have the permissions of your CD-ROM device changed to allow proper operation. In our example we will use /dev/rrz4c. As superuser you should: # chmod 666 /dev/rrz4c

You can tell xcd where the CD-ROM drive is. You can do this by either setting the environment variable CDROM to the device, or by starting xcd with the -cd option. For example:

      # using the environment variable (csh)
        % setenv CDROM /dev/rrz4c
        % xcd

       # using the '-cd' option
        % xcd -cd /dev/rrz4c

Or you can let xcd figure out where the CD-ROM is.










This document was created by man2html, using the manual pages.
Time: 02:42:59 GMT, October 02, 2010