Code

man: configuration section updated
[ncmpc.git] / doc / ncmpc.1
1 .TH "ncmpc" "1" "June 2005" "" ""
2 .SH "NAME"
3 ncmpc \- curses Music Player Daemon (MPD) client.
4 .SH "SYNOPSIS"
5 .B ncmpc
6 [options]
7 .SH "DESCRIPTION"
8 ncmpc is  a client for MPD, the Music Player Daemon. 
9 ncmpc connects to a MPD running on a machine on the local 
10 network.
12 By default, ncmpc connects to localhost:6600. 
13 This can be changed either at compile\-time, or by exporting the 
14 MPD_HOST and MPD_PORT environment variables, or by the command line
15 options \-\-host and \-\-port.
17 $ ncmpc \-\-host=musicserver \-\-port=44000
19 To use a password with mpd, set MPD_HOST to password@host 
20 or use the command line option \-\-password. Values from 
21 the command line overrides values from the environment.
23 Read more about MPD on http://www.musicpd.org
25 .SH "OPTIONS"
26 .TP 
27 .B \-?, \-\-help
28 Display help.
29 .TP 
30 .B \-V,  \-\-version
31 Display version information.
32 .TP 
33 .B \-c,  \-\-colors
34 Enable colors.
35 .TP 
36 .B \-C,  \-\-no\-colors
37 Disable colors.
38 .TP 
39 .B \-e,  \-\-exit
40 Exit on connection errors. The default is to reconnect.
41 .TP 
42 .B \-h, \-\-host=HOSTNAME
43 Specify MPD host.
44 .TP 
45 .B \-p, \-\-port=PORT
46 Connect to server on PORT.
47 .TP 
48 .B \-P, \-\-password=PASSWORD
49 Use password when connecting.
50 .TP 
51 .B \-f, \-\-config=FILE
52 Read configuration from file.
53 .TP 
54 .B \-k, \-\-key\-file=FILE
55 Read key bindings from FILE.
56 .TP
57 .B \-P, \-\-no\-splash=FILE
58 Disable the splash screen.
59 .TP 
60 Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
61 .SH "CONFIGURATION"
62 When ncmpc start it tries to read user setting from the ~/.ncmpc/config. If no user configuration is found ncmpc tries to load global settings from $SYSCONFDIR/ncmpc/config (the actual path is displayed on the help screen). An example configuration file (config.sample) should be provided with ncmpc.
66 .SS Connection
67 .TP
68 .B host = HOST
69 Connect to mpd running on specified host
70 .TP
71 .B port = PORT
72 Connect to mpd on the specified port
73 .TP
74 .B password = PASSWORD
75 Connect to mpd using the specified password.
76 .SS Interface
77 .TP
78 .B enable\-mouse = yes|no
79 Enable mouse support (if enabled at compile time).
80 .TP
81 .B screen\-list = SCREEN1 SCREEN2...
82 A list of screens to cycle through when using the previous/next screen commands.  Valid choices, if enabled at compile time, are playlist, browse, artist, help, search, song, keydef, lyrics, and outputs.
83 .TP
84 .B search\-mode = MODE
85 Default search mode for the search screen.  The mode is an integer index, with 0 for title, 1 for artist, 2 for album, 3 for filename, and 4 for artist+title.
86 .TP 
87 .B auto\-center = yes|no
88 Enable/disable auto center mode. When auto center mode is enabled 
89 ncmpc centers the current track in the playlist window.
90 .TP
91 .B find\-show\-last = yes|no
92 Show the most recent query instead of a blank line for a find.
93 .TP 
94 .B find\-wrap = yes|no
95 Wrapped find mode.
96 .TP 
97 .B wrap\-around = yes|no
98 Wrapped cursor movement.
99 .TP
100 .B bell\-on\-wrap = yes|no
101 Ring bell when find wraps around.
102 .TP 
103 .B audible\-bell = yes|no
104 Sound audible bell on alerts.
105 .TP 
106 .B visible\-bell = yes|no
107 Visible bell on alerts.
108 .TP
109 .B crossfade\-time = CROSSFADE TIME
110 Default crossfade time in seconds
111 .TP
112 .B seek\-time = NUM
113 Seek forward/backward by NUM seconds.
114 .TP 
115 .B lyrics\-timeout = NUM
116 Quits downloading lyrics of a song after the timeout of NUM seconds is reached.
117 .SS Display
118 .TP
119 .B welcome\-screen\-list = yes|no
120 Show a list of the screens in the top line on startup.
121 .TP 
122 .B wide\-cursor = yes|no
123 Make the cursor as wide as the screen.
124 .TP 
125 .B hide\-cursor = NUM
126 Hide the playlist cursor after NUM seconds of inactivity.
127 .TP
128 .B scroll = yes|no
129 Scroll the title if it is too long for the screen.
130 .TP
131 .B scroll\-sep = STRING
132 The separator to show at the end of the scrolling title.
133 .TP 
134 .B list\-format = SONG FORMAT
135 The format used to display songs in the main window.
136 .TP 
137 .B status\-format = SONG FORMAT
138 The format used to display songs on the status line.
139 .TP
140 .B status\-message\-time = TIME
141 The time, in seconds, for which status messages will be displayed.
142 .TP
143 .B display\-time = yes|no
144 Display the time in the status bar when idle.
145 .TP 
146 .B timedisplay-type = elapsed/remaining
147 Sets whether to display remaining or elapsed time in the status window. Default is elapsed.
148 .TP 
149 .B visible\-bitrate = yes|no
150 Show the bitrate in the status bar when playing a stream.
151 .B 
152 .TP 
153 .B set\-xterm\-title = yes|no
154 Change the XTerm title (ncmpc will not restore the title).
155 .TP 
156 .B xterm\-title\-format = SONG FORMAT
157 The format used to for the xterm title when ncmpc is playing.
158 .SS Colors
159 .TP 
160 .B enable\-colors = yes|no
161 Enable/disable colors.
162 .TP 
163 .B color background = COLOR
164 Set the background color. If the background color is assigned to the keyword \fBnone\fR, ncmpc will not change the background color. Valid background colors are the base colors: black, red, green, yellow, blue, magenta, cyan and white. 
165 .TP 
166 .B color title = TEXTCOLOR
167 Set the text color for the title row.  Possible text colors are the base colors plus grey, brightred, brightgreen, brightyellow, brightblue, brightmagenta, brightcyan and brightwhite.
168 .TP 
169 .B color title\-bold = TEXTCOLOR
170 Set the text color for the title row (the bold part).
171 .TP 
172 .B color line = TEXTCOLOR
173 Set the color of the line on the second row.
174 .TP 
175 .B color line\-flags = TEXTCOLOR
176 Set the text color used to indicate mpd flags on the second row.
177 .TP 
178 .B color list = TEXTCOLOR
179 Set the text color in the main area of ncmpc.
180 .TP 
181 .B color list\-bold = TEXTCOLOR
182 Set the bold text color in the main area of ncmpc.
183 .TP 
184 .B color progressbar = TEXTCOLOR
185 Set the color of the progress indicator.
186 .TP 
187 .B color status\-state = TEXTCOLOR
188 Set the text color used to display mpd status in the status window.
189 .TP 
190 .B color status\-song = TEXTCOLOR
191 Set the text color used to display song names in the status window.
192 .TP 
193 .B color status\-time = TEXTCOLOR
194 Set the text color used to display time the status window. 
195 .TP 
196 .B color alert = TEXTCOLOR
197 Text color used to display alerts in the status window.
198 .TP 
199 .B colordef COLOR = R, G, B
200 Redefine any of the base colors. The RGB values must be an integer value between 0 and 1000. 
201 \fBNote\fR: Only some terminals allow redefinitions of colors! 
203 .SH "KEYS"
204 When ncmpc start it tries to read user key bindings from the ~/.ncmpc/keys file. If no user key bindings is found ncmpc tries to load global key bindings from $SYSCONFDIR/ncmpc/keys (the actual path is displayed on the help screen). 
206 You can view ncmpc's key bindings by pressing '1' (help) when 
207 ncmpc is running. To edit key bindings use the key editor in ncmpc (press 'K').
208 .SH "SONG FORMAT"
209 Format of song display for status and the list window.
210 The  metadata  delimeters  are: %name%, %artist%, %track%, %time%, %file%, %shortfile%.
212 The [] operators is used to group output such that if no metadata delimeters are found or matched between '[' and ']', then none of  the  characters between '[' and ']' are outputed. '&' and '|' are logical operators for and and or. '#'  is used to escape characters. 
214 Some  useful examples for format are: 
216    "%file%" 
218 and 
220    "[[%artist% \- ]%title%]|[%file]" 
221 .SH "BUGS"
222 Report bugs on http://www.musicpd.org/mantis/
223 .SH "NOTE"
224 Since MPD uses UTF\-8, ncmpc needs to convert characters to the 
225 charset used by the local system. If you get character conversion errors when your running ncmpc you probably need to set up your locale. This is done by setting any of the LC_CTYPE, LANG or LC_ALL enviroment variables (LC_CTYPE only affects character handling).
227 .SH "SEE ALSO"
228 mpc(1), mpd(1), locale(5), locale(7)