1# 2# @(#)wwwwarp.cfg 7.37 04/01/23 3# Xmcd wwwWarp menu configuration file 4# 5# This file configures the wwwWarp menu structure in xmcd. It should be 6# installed in the XMCDLIB/config directory. The file format is described 7# below. 8# 9# Each line that begins with a '#' character is a comment. 10# Blank lines are ignored. 11# 12# Each menu is defined with the "Menu" keyword, the menu_name, and an 13# open/close braces pair enclosing item definitions, as follows: 14# 15# Menu menu_name 16# { 17# item_definition 18# ... 19# } 20# 21# The menu_name "wwwWarp" is defined to be the top-level menu. All other 22# menu names are sub-menus. The menu name must not contain space or tab 23# characters. 24# 25# Each menu item definition must be one of the following forms: 26# 27# "description string" f.title 28# "-" f.separator 29# "=" f.separator2 30# "description string" [kdesc] f.goto URL_string 31# "description string" [kdesc] f.discog path_string 32# "description string" [kdesc] f.about 33# "description string" [kdesc] f.help 34# "description string" [kdesc] f.motd 35# "description string" [kdesc] f.submitURL 36# "description string" [kdesc] f.infoBrowser 37# "description string" [kdesc] f.generalSites 38# "description string" [kdesc] f.albumSites 39# "description string" f.menu menu_name 40# 41# The first field is a description string that will be displayed as 42# the menu item. 43# 44# The [kdesc] field is an optional shortcut key definition that selects 45# the menu entry. It is in the form modifier-keyname, where modifier 46# is a meta-key such as Ctrl, Shift or Alt; and keyname is the name of 47# a key. Here are some examples: 48# 49# Alt-a 50# Shift-b 51# Ctrl-c 52# Alt-Left 53# 54# A list of modifiers and keynames can be found in <X11/keysymdef.h> 55# Note that both modifier and keyname are required in the wwwWarp menu. 56# The shortcut will select a wwwWarp menu entry even when the menu is 57# not open. When the menu is open, a menu selection may be made without 58# using the modifier. 59# 60# If you make changes here, check for shortcut key conflicts with those 61# defined in app-defaults/XMcd (look for "hotkey"). The hotkeys takes 62# precedence over the shortcut keys defined here. 63# 64# The f.* field defines the item's action, as follows: 65# 66# f.title Define the menu's title string. This should be the 67# menu's first item. 68# f.separator Add single-line separator. 69# f.separator2 Add double-line separator. 70# f.goto Add item that, when selected, launches the web 71# browser to the specified URL_string. 72# f.discog Add item that, when selected, launches the web 73# browser to the CD's Local Discography info page as 74# defined by the path_string. 75# f.about Add item that, when selected, opens the "About 76# xmcd" window. 77# f.help Add item that, when selected, opens the xmcd help 78# system window. 79# f.motd Add item that, when selected, displays the xmcd 80# "message of the day" information from the MOTD server. 81# f.submitURL Add item that, when selected, pops up the "submit 82# URLs to CDDB" window. 83# f.infoBrowser Add item that, when selected, launches "CDDB Music 84# Browser". 85# f.generalSites Add item that, when selected, links to a 86# Gracenote-provided dynamic sub-menu that contains 87# links to web sites of general interest. 88# f.albumSites Add an item that, when selected, links to a 89# Gracenote-provided dynamic sub-menu that contains 90# links to web sites related to the current album or 91# artist. 92# f.menu Add item that, when selected, pops up the sub-menu 93# specified by menu_name. The menu_name must be one 94# of the other menus defined in this file. Make sure 95# there are no circular links (i.e., a link to itself, 96# or a link to another menu which has a links back to 97# itself). 98# 99# Each item definition should be on one line, or extended to multiple lines 100# via a backslash '\' as the last character of the line. The backslash 101# must not be used to break up the line within a field (i.e., the description 102# string, shortcut key definition, action keyword, URL_string and path_string 103# cannot be broken up. 104# 105# The following are magic tokens which xmcd will make a text substitution 106# for in a URL_string or path_string. 107# 108# %X The program name (i.e., "xmcd") 109# %V The program version 110# %N The user's login name 111# %~ The user's home directory 112# %H The system's host name 113# %L The xmcd library directory 114# %S The xmcd local discography directory 115# %C The music genre/subgenre of the current CD 116# %I The xmcd disc identifier of the current CD 117# %A The album artist of the current CD 118# %D The album title of the current CD 119# %R The track artist, determined using the following order of 120# precedence: 121# 1. The selected track in the xmcd track list 122# 2. The currently playing track 123# If no track is selected, and the CD is not currently playing, 124# or if a track title is not defined for the appropriate track, 125# then the disc artist will be used for %R instead. 126# %T The track title, determined using the same order of 127# precedence as %R. 128# If no track is selected, and the CD is not currently playing, 129# or if a track title is not defined for the appropriate track, 130# then the disc title will be used for %T instead. 131# %# The track number, determined using the same order of 132# precedence as %R. 133# %B The artist and disc title information (similar to %A+%D) 134# If either the artist or the disc title is undefined then 135# Only one of the two attributes will be used. 136# %a "Reduced" version of %A 137# %d "Reduced" version of %D 138# %r "Reduced" version of %R 139# %t "Reduced" version of %T 140# %b "Reduced" version of %B 141# 142# "Reduced" means all punctuations deleted, and any words in the 143# excludeWords list are also excluded. 144# 145 146Menu wwwWarp 147{ 148 "wwwWarp Selection" f.title 149 "=" f.separator2 150 "About xmcd..." Shift-A f.about 151 "Xmcd help..." Alt-p f.help 152 "Xmcd message of the day..." Alt-g f.motd 153 "Xmcd man page" Alt-m f.goto \ 154 "file://localhost%L/discog/xmcd.html" 155 "Xmcd Local Discography" Shift-L f.discog \ 156 "file://localhost%L/discog/%C/%I/index.html" 157 "Xmcd official web site" Alt-d f.goto \ 158 "http://www.amb.org/xmcd/" 159 "-" f.separator 160 "Gracenote, The #1 Music Info Source" f.menu cddbMenu 161 "Search the web for related content" f.menu searchMenu 162 "Music directories" f.menu musicMenu 163} 164 165Menu cddbMenu 166{ 167 "Services brought to you by Gracenote" f.title 168 "=" f.separator2 169 "CDDB Music Browser" Alt-u f.infoBrowser 170 "General sites of interest" Alt-n f.generalSites 171 "Sites related to this album" Alt-i f.albumSites 172} 173 174Menu searchMenu 175{ 176 "Select a search engine" f.title 177 "=" f.separator2 178 "CDDB search" Shift-D f.goto \ 179 "http://www.cddb.com/php/search2.php3?f=artist&f=disc&f=track&q=%b" 180 "All Music Guide" Alt-s f.goto \ 181 "http://www.allmusic.com/cg/x.dll?P=AMG&opt1=1&sql=%a" 182 "-" f.separator 183 "Alltheweb" Alt-b f.goto \ 184 "http://www.alltheweb.com/search?cat=web&cs=iso-8859-1&l=any&q=%b" 185 "AltaVista" Shift-V f.goto \ 186 "http://www.altavista.digital.com/cgi-bin/query?q=%b" 187 "Excite" Alt-x f.goto \ 188 "http://search.excite.com/search.gw?search=%b" 189 "Google" Shift-G f.goto \ 190 "http://www.google.com/search?q=%b" 191 "Look Smart" Alt-k f.goto \ 192 "http://www.looksmart.com/r?key=%b&search=1" 193 "Lycos" Alt-y f.goto \ 194 "http://search.lycos.com/default.asp?lpv=1&loc=searchhp&query=%b" 195 "Open Directory Project" Alt-j f.goto \ 196 "http://search.dmoz.org/cgi-bin/search?search=%b" 197 "Teoma" Alt-T f.goto \ 198 "http://s.teoma.com/search?q=%b&qcat=1&qsrc=0" 199 "Yahoo!" Alt-h f.goto \ 200 "http://search.yahoo.com/bin/search?p=%b" 201} 202 203Menu musicMenu 204{ 205 "Select a directory" f.title 206 "=" f.separator2 207 "All Music Guide" Alt-A f.goto \ 208 "http://www.allmusic.com/" 209 "Excite music" Alt-E f.goto \ 210 "http://www1.excite.com/home/music/music_overview/" 211 "Google music" Alt-G f.goto \ 212 "http://directory.google.com/Top/Arts/Music/" 213 "Lycos music" Alt-L f.goto \ 214 "http://music.lycos.com/" 215 "RollingStone.com" Alt-R f.goto \ 216 "http://www.rollingstone.com/" 217 "Yahoo! music" Shift-Y f.goto \ 218 "http://www.yahoo.com/Entertainment/Music/" 219} 220 221