File: common.cfg

package info (click to toggle)
xmcd 2.6-17sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,464 kB
  • ctags: 5,075
  • sloc: ansic: 51,322; sh: 4,039; makefile: 82; pascal: 67
file content (365 lines) | stat: -rw-r--r-- 14,702 bytes parent folder | download | duplicates (5)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
!
! @(#)common.cfg	6.79 00/01/21
!
! Common configuration file
!
!   xmcd  - Motif(tm) CD Audio Player
!   cda   - Command-line CD Audio Player
!   libdi - CD Audio Player Device Interface Library
!
!   Copyright (C) 1993-2000  Ti Kan
!   E-mail: ti@amb.org
!
!   This program is free software; you can redistribute it and/or modify
!   it under the terms of the GNU General Public License as published by
!   the Free Software Foundation; either version 2 of the License, or
!   (at your option) any later version.
!
!   This program is distributed in the hope that it will be useful,
!   but WITHOUT ANY WARRANTY; without even the implied warranty of
!   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!   GNU General Public License for more details.
!
!   You should have received a copy of the GNU General Public License
!   along with this program; if not, write to the Free Software
!   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
! Install this file as XMCDLIB/config/common.cfg.  XMCDLIB is the
! XMcd.libdir X resource (or XMCD_LIBDIR env variable).
!
! Users can also override these parameters by specifying them
! in an optional $HOME/.xmcdcfg/common.cfg file.
!

!*
!* CD-player behavior control resources
!*
!* You may want to modify these parameters to suit your set-up.
!*
!* Unless otherwise marked, these parameters are used by both the cda
!* and xmcd utilities.
!*
!* In parameters below that specifies audio blocks, each audio block is
!* 1/75 second of playback time.
!*
!* Note that all msec time parameters used below are subject to the
!* resolution of your system software timer as provided in the
!* XtAppAddTimeOut() library call.
!*

! Default device to open for the CD-ROM player interface
!
! Examples:
! /dev/scsi/3			(Apple A/UX, SCSI ID 3)
! /dev/scsi/scsi(ncsc@7(FFFB0000,7),2,0)	(DG/UX, SCSI ID 2, LUN 0)
! /dev/rrz4c			(Digital Ultrix and OSF/1)
! /dev/rcd0c			(FreeBSD)
! /dev/rdsk/c201d4s0		(HP-UX 9.x, SCSI ID 4)
! /dev/rdsk/c0t4d0		(HP-UX 10.x, HP-UX 11.x, SCSI ID 4)
! /dev/rcd0			(IBM AIX)
! /dev/scd0			(Linux)
! /dev/rcd0d			(NetBSD/x86)
! /dev/rcd0c			(NetBSD, OpenBSD)
! /dev/racd0a			(OpenBSD ATAPI drives)
! /dev/cd0			(QNX)
! /dev/rcd0			(SCO UNIX, Open Desktop, Open Server)
! /dev/scsi/sc0d3l0		(SGI IRIX, controller 0, SCSI ID 3, LUN 0)
! /dev/ios0/rsdisk005s0		(Siemens Pyramid SINIX)
! /dev/rsd06c			(Sony NEWS-OS)
! /dev/rcdrom/c0a2d5l0		(Stratus FTX, vsb 2, SCSI ID 5, LUN 0)
! /dev/rsr0			(SunOS 4.x)
! /dev/rdsk/c0t6d0s0		(SunOS 5.x w/o Solaris Volume Manager)
! /vol/dev/aliases/cdrom0	(SunOS 5.x w/ Solaris Volume Manager)
! /dev/rcdrom/cd0		(UNIX SVR4.0/x86)
! /dev/rcdrom/cdrom1		(UNIX SVR4.2/x86, SVR4.2MP/x86, UnixWare)
! /dev/rdsk/m187_c0d3s7		(UNIX SVR4.0/88k, m187 controller 0, SCSI ID 3)
! DKA500:			(Digital OpenVMS)
! 
device:			/dev/cdrom

! CD database search path.  Items are separated by a semi-colon ';'
! character.  Each item can be:
!	- An absolute directory path.  Tilde expansion '~' is supported.
!	  Examples:
!		/usr/local/lib/cddb/classical
!		~john/cddb/jazz
!		~/mycddb/rock
!	- A relative directory path (which is taken to be relative
!	  to the top-level local CD database directory)
!	  Examples:
!		blues
!		reggae
!		soundtrack
!	- A remote CD database server in URL format.  Two protocols
!	  are supported: cddbp or http.  Not all CD database server
!	  sites support both protocols.  Http URLs must contain the
!	  path to the CD database server CGI executable.
!	  Examples:
!		cddbp://cddbsrv.xyz.com
!		cddbp://cddbsrv.xyz.com:888
!		cddbp://127.0.0.1
!		http://cddbsrv.xyz.com/~cddb/cddb.cgi
!
! (The XMCD_CDDBPATH environment variable overrides this)
cddbPath: rock;jazz;blues;newage;classical;reggae;folk;country;soundtrack;misc;data;cddbp://freedb.freedb.org;cddbp://cddb.cddb.com:8880


! Local CD database cache file permissions
cddbFileMode:		0664

! Remote CD database default port number when connecting in CDDBP mode
! The default port number for the HTTP mode is 80.
cddbDefaultPort:	888

! Remote CD database timeout interval (seconds).  An attempt to connect
! to a remote CDDB server will be aborted if the server does not respond
! in this time interval.  You may need to increase this limit if the
! CDDB server is on a slow network link to your host (such as an on-demand
! dial-up PPP or SLIP connection).
cddbTimeOut:		60

! When cddbRemoteDisable is set to True, remote CDDB database queries will
! be inhibited, even if remote servers are specified in the cddbPath.
! In xmcd, this will be the startup state, and the "Disable remote" button
! will toggle the behavior at run-time.  This is useful for systems that
! are not connected to the Internet, or only connected on a part-time basis.
cddbRemoteDisable:	False

! CD database remote entry auto-save feature.  If this is set to a non-zero
! value, xmcd and cda will automatically save remotely-queried CD database
! entries into the local CD database cache.  The value is the number of days
! after which the saved entry would expire.  After expiration, xmcd/cda
! will ignore the local entry and query the remote server again.  The new
! information from the server would then be auto-saved.
!
! The expiration function will work correctly only if cddbRemoteDisable
! is False, the xmcd CDDB Remote Disable button is not pressed, and remote
! servers are configured in the cddbPath parameter *after* the local
! database directories.
cddbRemoteAutoSave:	7

! Whether to use a proxy server when connecting to a CD database server
! site via HTTP protocol.
cddbUseHttpProxy:	False

! The HTTP proxy server's host name and port number.  This is used
! only when cddbUseHttpProxy is set to True.
!
!	Syntax: proxyhost[:port]
!
! The host name can also be an IP number.  The port number is optional.
!
!	Examples:
!		proxy.xyz.com
!		proxy.xyz.com:80
!
proxyServer:		yourproxyhost:80

! Play status poll interval during audio playback. (msec)
! This should be less than 500 to get satisfactory display update
! response.
! (xmcd only)
statusPollInterval:	260

! If no disc, poll interval for disc insertion (msec).  This is
! used only if "insertPollDisable" is False.  The minimum is 500.
! (xmcd only)
insertPollInterval:	4000

! If set to True, this causes xmcd not to poll for disc insertion
! when xmcd is first started (and a CD is not loaded), or after a
! CD is ejected.  A CD is detected only when the "Play/Pause" or
! "Stop" button is clicked.
! (xmcd only)
insertPollDisable:	False

! When previous track/index button pressed, if this number of audio blocks
! has been played in the current track/index, then playback will start from
! the beginning of the current track/index instead of the previous one.
! (xmcd only)
previousThreshold:	100

! During Sample playback operations, the number of audio blocks to play
! in each track.
! (xmcd only)
sampleBlocks:		750

! Whether Sun Solaris Volume Manager (vold) is running.  This is used
! only on the Solaris platform with the Volume Manager.
solaris2VolumeManager:	False

! Whether error messages are output to stderr when xmcd encounters
! errors when delivering commands to the CD-ROM drive.  You should
! only set this to False if you have a non SCSI-2 compliant CD-ROM
! drive that causes xmcd to display lots of error messages.
showScsiErrMsg:		False

! Whether the current device, disc ID, category and other information
! should be recorded in the /tmp/.cdaudio/cur.XXX file
curfileEnable:		True

! The default main window time display mode.  The supported modes are:
! 0	Track elapsed time (elapse)
! 1	Disc elapsed time (e-disc)
! 2	Track remaining time (r-trac)
! 3	Disc remaining time (r-disc)
! (xmcd only)
timeDisplayMode:	0

! Whether to enable tool-tips.  When enabled, if the mouse cursor is
! positioned over a main window control, a small window is popped up
! after a delay, describing the function of the control.
! (xmcd only)
tooltipEnable:		True

! If tooltipEnable is set to True, this is the time delay (msec) after
! the mouse is positioned over a control before the tool-tip is popped up.
! (xmcd only)
tooltipDelayInterval:	1000

! After a tool-tip is popped up, the minimum amount of time (msec) that
! the tooltip will be displayed before automatically popping down.  The
! actual amount of time will be scaled up based on the length of text
! in the tool-tip.  Setting this to zero will make the tooltip stay active
! until the mouse cursor is moved away from the control.
! (xmcd only)
tooltipActiveInterval:	3000

! Whether xmcd/cda should disable maintaining a per-user history file of
! CDs that were played as $HOME/.xmcdcfg/history.  If set to True, then
! no history file will be written.
historyFileDisable:	False

! The maximum number of disc entries to maintain in the per-user history.
! If the history grows to beyond this number, old history is automatcally
! cleaned to maintain this count.  This is to limit the history file
! size and memory consumption.  If this is set to 0, then no history will
! be kept.
maximumHistory:		100

! The per-user history file's permissions
historyFileMode:	0600

! Whether the remote control feature should be enabled.
! (xmcd only)
remoteControlEnable:	True

! Whether remote control activity should be logged to the
! $HOMR/.xmcdcfg/remote.log file.  This is useful only if the
! remoteControlEnable parameter is also True.
! (xmcd only)
remoteControlLog:	True

! Whether verbose debug diagnostics should be generated on stderr.
debugMode:		False

!
! wwwWarp parameters
!
! browserRemote   The command line to remote-control a running web browser
!                 and make it open the destination URL.  This should not
!                 be run in the background (no '&' at the end).
!                 Examples:
!                 (Netscape) netscape -remote 'openURL(%U)' >/dev/null 2>&1
!                 (Mosaic)   /usr/lib/X11/xmcd/config/rmtmosaic.sh '%U'
! browserDirect   The command line to start a new web browser and make it
!                 open the destination URL.  This command should end with a
!                 '&' character to make it run in the background.
!                 Examples:
!                 (Netscape) netscape '%U' >/dev/null 2>&1 &
!                 (Mosaic)   Mosaic '%U' >/dev/null 2>&1 &
!
! The %U magic token will be substituted by xmcd with the destination URL
! on both of the above parameters.  If relative pathnames are specified
! to the browser, then it should be in your PATH environment variable.
!
! webSite1URL     The URL to the official xmcd web site.                 
! webSite2URL     The URL to the official CDDB web site.                 
! webSite3URL     The URL to the CDDB search engine site.                 
! discographyURL  The URL to the Local Discography directory.
! excludeWords    Words to exclude from the artist and titles when xmcd
!                 composes keywords for web searching.  This is done when
!                 reduction is specified (see %a, %d, %t or %b below).
! 
! The following are magic tokens which xmcd will make a text substitution
! for in a URL string.
!
!    %X    The program name (i.e., "xmcd")
!    %V    The program version
!    %N    The user's login name
!    %H    The system's host name
!    %L    The xmcd library directory path.
!    %C    The music category of the current CD (e.g., jazz, classical, ...)
!    %I    The disc ID of the current CD.
!    %A    The artist of the current CD.
!    %D    The disc title of the current CD.
!    %T    The track title, determined using the following order of
!          precedence:
!		1. The selected track in the xmcd track list
!		2. The currently playing track
!          If no track is selected, and the CD is not currently playing,
!	   or if a track title is not defined for the appropriate track,
!          then the disc title will be used for %T instead.
!    %B    The artist and disc title information (similar to %A+%D)
!    %a    "Reduced" version of %A
!    %d    "Reduced" version of %D
!    %t    "Reduced" version of %T
!    %b    "Reduced" version of %B
!
!    "Reduced" means all punctuations deleted, and any words in the
!    excludeWords list are also excluded.
!
browserRemote:	/usr/bin/X11/netscape -remote 'openURL(%U)' >/dev/null 2>&1
browserDirect:	/usr/bin/X11/netscape '%U' >/dev/null 2>&1 &
webSite1URL:	http://metalab.unc.edu/tkan/xmcd/
webSite2URL:	http://www.cddb.com/
webSite3URL:	http://www.yahoo.com/Entertainment/Music/Reviews/
discographyURL:	file://localhost%L/discog/%C/%I/index.html
excludeWords:	the and or an a re ve s d t


!
! Search Engine name to action mapping
!
!    The following section defines a list of web sites/documents that will
!    appear in xmcd's wwwWarp "Search engines" option menu.
!
!    Notes:
!    1. These definitions may need to be changed if the particular site's
!       CGI interface changes.
!    2. This list is provided for the convenience of xmcd users.  Xmcd and
!       its author have no affiliation with, offer no endorsement, and
!       provide no guarantee for the contents and services of these sites.
!
!    The format each line is:
!
!    Name: action [fallback]
!
!    Name is the name of the search engine site.  The action is the URL
!    plus the CGI arguments to invoke a search.  The fallback (optional)
!    is the URL that will be used in case the action URL leads to a
!    non-existent document.  Note: the fallback is used only if the action
!    is a local document (i.e., in the form of file://localhost/path/xyz
!    or file:/path/xyz).
!
!    If the same Name appears in multiple lines, the last one will be used.
!    A Name of just a single hyphen '-' will cause xmcd to insert a separator 
!    line in the menu.
!
!    The same magic tokens for URLs described in the above section are also
!    supported in the action field here.
!
CDDB: http://www.cddb.com/xm/search?q=%b
All Music Guide: http://www.allmusic.com/cg/x.dll?P=AMG&opt1=1&sql=%a
Intl Lyrics Server: http://www.lyrics.ch/search/checknormal.asp?bands=&label=&artist=%a&song=%t&match=like
RollingStone Ntwk: http://rollingstone.tunes.com/sections/artists/text/searchresults.asp?SearchFor=%A&SearchType=ArtistCheck&afl=%X
Ultimate Band List: http://www.ubl.com/cgi/search.cgi?SEARCH=%a&section=UBL
-:
AltaVista: http://www.altavista.digital.com/cgi-bin/query?q=%b
Excite: http://search.excite.com/search.gw?search=%b
Go Network: http://infoseek.go.com/Titles?qt=%b
Hotbot: http://www.search.hotbot.com/hResult.html?MT=%b
Look Smart: http://www.looksmart.com/r?key=%b&search=1
Lycos: http://www.lycos.com/cgi-bin/pursuit?query=%b
Web Crawler: http://webcrawler.com/cgi-bin/WebQuery?searchText=%b
Yahoo: http://search.yahoo.com/bin/search?p=%b