Lyrics fetcher: fix metrolyrics.com fetchers
[ncmpcpp.git] / doc / config
blob5aca3e37b7c1188eead54568a6c18c8b3b3b3bc7
1 ##############################################################################
2 ## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ##
3 ## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences.          ##
4 ##############################################################################
6 ##### directories ######
7 ##
8 ## Directory for storing ncmpcpp related files.  Changing it is useful if you
9 ## want to store everything somewhere else and provide command line setting for
10 ## alternative location to config file which defines that while launching
11 ## ncmpcpp.
14 #ncmpcpp_directory = ~/.ncmpcpp
17 ## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
18 ## MPD clients (eg. ncmpc) also use that location.
21 #lyrics_directory = ~/.lyrics
23 ##### connection settings #####
25 #mpd_host = localhost
27 #mpd_port = 6600
29 #mpd_connection_timeout = 5
31 ## Needed for tag editor and file operations to work.
33 #mpd_music_dir = ~/music
35 #mpd_crossfade_time = 5
37 ##### music visualizer #####
39 ## Note: In order to make music visualizer work you'll need to use mpd fifo
40 ## output, whose format parameter has to be set to 44100:16:1 for mono
41 ## visualization or 44100:16:2 for stereo visualization. Example configuration
42 ## (it has to be put into mpd.conf):
44 ## audio_output {
45 ##        type            "fifo"
46 ##        name            "Visualizer feed"
47 ##        path            "/tmp/mpd.fifo"
48 ##        format          "44100:16:2"
49 ## }
52 #visualizer_fifo_path = /tmp/mpd.fifo
55 ## Note: Below parameter is needed for ncmpcpp to determine which output
56 ## provides data for visualizer and thus allow syncing between visualization and
57 ## sound as currently there are some problems with it.
60 #visualizer_output_name = Visualizer feed
63 ## If you set format to 44100:16:2, make it 'yes'.
65 #visualizer_in_stereo = yes
68 ## Note: Below parameter defines how often ncmpcpp has to "synchronize"
69 ## visualizer and audio outputs.  30 seconds is optimal value, but if you
70 ## experience synchronization problems, set it to lower value.  Keep in mind
71 ## that sane values start with >=10.
74 #visualizer_sync_interval = 30
77 ## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
78 ## with fftw3 support.
81 ## Available values: spectrum, wave, wave_filled, ellipse.
83 #visualizer_type = wave
85 #visualizer_look = ●▮
87 #visualizer_color = blue, cyan, green, yellow, magenta, red
89 ## Alternative subset of 256 colors for terminals that support it.
91 #visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161
93 ##### system encoding #####
95 ## ncmpcpp should detect your charset encoding but if it failed to do so, you
96 ## can specify charset encoding you are using here.
98 ## Note: You can see whether your ncmpcpp build supports charset detection by
99 ## checking output of `ncmpcpp --version`.
101 ## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
102 ## if your encoding is different.
105 #system_encoding = ""
107 ##### delays #####
109 ## Time of inactivity (in seconds) after playlist highlighting will be disabled
110 ## (0 = always on).
112 #playlist_disable_highlight_delay = 5
114 ## Defines how long messages are supposed to be visible.
116 #message_delay_time = 5
118 ##### song format #####
120 ## For a song format you can use:
122 ## %l - length
123 ## %f - filename
124 ## %D - directory
125 ## %a - artist
126 ## %A - album artist
127 ## %t - title
128 ## %b - album
129 ## %y - date
130 ## %n - track number (01/12 -> 01)
131 ## %N - full track info (01/12 -> 01/12)
132 ## %g - genre
133 ## %c - composer
134 ## %p - performer
135 ## %d - disc
136 ## %C - comment
137 ## %P - priority
138 ## $R - begin right alignment
140 ## If you want to make sure that a part of the format is displayed only when
141 ## certain tags are present, you can archieve it by grouping them with brackets,
142 ## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
143 ## present or '' otherwise.  It is also possible to define a list of
144 ## alternatives by providing several groups and separating them with '|',
145 ## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
146 ## not present.
148 ## Note: If you want to set limit on maximal length of a tag, just put the
149 ## appropriate number between % and character that defines tag type, e.g. to
150 ## make album take max. 20 terminal cells, use '%20b'.
152 ## In addition, formats support markers used for text attributes.  They are
153 ## followed by character '$'. After that you can put:
155 ## - 0 - default window color (discards all other colors)
156 ## - 1 - black
157 ## - 2 - red
158 ## - 3 - green
159 ## - 4 - yellow
160 ## - 5 - blue
161 ## - 6 - magenta
162 ## - 7 - cyan
163 ## - 8 - white
164 ## - 9 - end of current color
165 ## - b - bold text
166 ## - u - underline text
167 ## - r - reverse colors
168 ## - a - use alternative character set
170 ## If you don't want to use a non-color attribute anymore, just put it again,
171 ## but this time insert character '/' between '$' and attribute character,
172 ## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
173 ## reversed colors.
175 ## If you want to use 256 colors and/or background colors in formats (the naming
176 ## scheme is described below in section about color definitions), it can be done
177 ## with the syntax $(COLOR), e.g. to set the artist tag to one of the
178 ## non-standard colors and make it have yellow background, you need to write
179 ## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
180 ## with attributes listed above.
182 ## Note: colors can be nested.
185 #song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
187 #song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
189 #song_library_format = {%n - }{%t}|{%f}
191 #alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
193 #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
195 #current_item_prefix = $(yellow)$r
197 #current_item_suffix = $/r$(end)
199 #current_item_inactive_column_prefix = $(white)$r
201 #current_item_inactive_column_suffix = $/r$(end)
203 #now_playing_prefix = $b
205 #now_playing_suffix = $/b
207 #browser_playlist_prefix = "$2playlist$9 "
209 #selected_item_prefix = $6
211 #selected_item_suffix = $9
213 #modified_item_prefix = $3> $9
216 ## Note: attributes are not supported for the following variables.
218 #song_window_title_format = {%a - }{%t}|{%f}
220 ## Note: Below variables are used for sorting songs in browser.  The sort mode
221 ## determines how songs are sorted, and can be used in combination with a sort
222 ## format to specify a custom sorting format.  Available values for
223 ## browser_sort_mode are "name", "mtime", "format" and "noop".
226 #browser_sort_mode = name
228 #browser_sort_format = {%a - }{%t}|{%f} {(%l)}
230 ##### columns settings #####
232 ## syntax of song columns list format is "column column etc."
234 ## - syntax for each column is:
236 ## (width of the column)[color of the column]{displayed tag}
238 ## Note: Width is by default in %, if you want a column to have fixed size, add
239 ## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
240 ## screen (so the real width will depend on actual screen size), whereas
241 ## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
242 ## is.
244 ## - color is optional (if you want the default one, leave the field empty).
246 ## Note: You can give a column additional attributes by putting appropriate
247 ## character after displayed tag character. Available attributes are:
249 ## - r - column will be right aligned
250 ## - E - if tag is empty, empty tag marker won't be displayed
252 ## You can also:
254 ## - give a column custom name by putting it after attributes, separated with
255 ##   character ':', e.g. {lr:Length} gives you right aligned column of lengths
256 ##   named "Length".
258 ## - define sequence of tags, that have to be displayed in case predecessor is
259 ##   empty in a way similar to the one in classic song format, i.e. using '|'
260 ##   character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
261 ##   display artist tag and then composer and performer if previous ones are not
262 ##   available.
265 #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
267 ##### various settings #####
270 ## Note: Custom command that will be executed each time song changes. Useful for
271 ## notifications etc.
273 #execute_on_song_change = ""
276 ## Note: Custom command that will be executed each time player state
277 ## changes. The environment variable MPD_PLAYER_STATE is set to the current
278 ## state (either unknown, play, pause, or stop) for its duration.
281 #execute_on_player_state_change = ""
283 #playlist_show_mpd_host = no
285 #playlist_show_remaining_time = no
287 #playlist_shorten_total_times = no
289 #playlist_separate_albums = no
292 ## Note: Possible display modes: classic, columns.
294 #playlist_display_mode = columns
296 #browser_display_mode = classic
298 #search_engine_display_mode = classic
300 #playlist_editor_display_mode = classic
302 #discard_colors_if_item_is_selected = yes
304 #show_duplicate_tags = yes
306 #incremental_seeking = yes
308 #seek_time = 1
310 #volume_change_step = 2
312 #autocenter_mode = no
314 #centered_cursor = no
317 ## Note: You can specify third character which will be used to build 'empty'
318 ## part of progressbar.
320 #progressbar_look = =>
322 ## Available values: database, playlist.
324 #default_place_to_search_in = database
326 ## Available values: classic, alternative.
328 #user_interface = classic
330 #data_fetching_delay = yes
332 ## Available values: artist, album_artist, date, genre, composer, performer.
334 #media_library_primary_tag = artist
336 #media_library_albums_split_by_date = yes
338 ## Available values: wrapped, normal.
340 #default_find_mode = wrapped
342 #default_tag_editor_pattern = %n - %t
344 #header_visibility = yes
346 #statusbar_visibility = yes
348 #titles_visibility = yes
350 #header_text_scrolling = yes
352 #cyclic_scrolling = no
354 #lines_scrolled = 2
356 #lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
358 #follow_now_playing_lyrics = no
360 #fetch_lyrics_for_current_song_in_background = no
362 #store_lyrics_in_song_dir = no
364 #generate_win32_compatible_filenames = yes
366 #allow_for_physical_item_deletion = no
369 ## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
370 ## language you set and if it fails, it will fall back to english. Otherwise it
371 ## will use english the first time.
373 ## Note: Language has to be expressed as an ISO 639 alpha-2 code.
375 #lastfm_preferred_language = en
377 #space_add_mode = add_remove
379 #show_hidden_files_in_local_browser = no
382 ## How shall screen switcher work?
384 ## - "previous" - switch between the current and previous screen.
385 ## - "screen1,...,screenN" - switch between given sequence of screens.
387 ## Screens available for use: help, playlist, browser, search_engine,
388 ## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
389 ## lyrics, last_fm.
391 #screen_switcher_mode = playlist, browser
394 ## Note: You can define startup screen by choosing screen from the list above.
396 #startup_screen = playlist
399 ## Note: You can define startup slave screen by choosing screen from the list
400 ## above or an empty value for no slave screen.
402 #startup_slave_screen = ""
404 #startup_slave_screen_focus = no
407 ## Default width of locked screen (in %).  Acceptable values are from 20 to 80.
410 #locked_screen_width_part = 50
412 #ask_for_locked_screen_width_part = yes
414 #jump_to_now_playing_song_at_start = yes
416 #ask_before_clearing_playlists = yes
418 #clock_display_seconds = no
420 #display_volume_level = yes
422 #display_bitrate = no
424 #display_remaining_time = no
426 ## Available values: none, basic, extended, perl.
428 #regular_expressions = perl
431 ## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
432 ## sorting items in browser, tags in media library, etc.
434 #ignore_leading_the = no
437 ## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
438 ## filtering lists. This takes an effect only if boost was compiled with ICU
439 ## support.
441 #ignore_diacritics = no
443 #block_search_constraints_change_if_items_found = yes
445 #mouse_support = yes
447 #mouse_list_scroll_whole_page = yes
449 #empty_tag_marker = <empty>
451 #tags_separator = " | "
453 #tag_editor_extended_numeration = no
455 #media_library_sort_by_mtime = no
457 #enable_window_title = yes
460 ## Note: You can choose default search mode for search engine. Available modes
461 ## are:
463 ## - 1 - use mpd built-in searching (no regexes, pattern matching)
465 ## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
466 ##       if your mpd is on a remote machine, downloading big database to process
467 ##       it can take a while
469 ## - 3 - match only exact values (this mode uses mpd function for searching in
470 ##       database and local one for searching in current playlist)
473 #search_engine_default_search_mode = 1
475 #external_editor = nano
477 ## Note: set to yes if external editor is a console application.
479 #use_console_editor = yes
481 ##### colors definitions #####
483 ## It is possible to set a background color by setting a color value
484 ## "<foreground>_<background>", e.g. red_black will set foregound color to red
485 ## and background color to black.
487 ## In addition, for terminals that support 256 colors it is possible to set one
488 ## of them by using a number in range [1, 256] instead of color name,
489 ## e.g. numerical value corresponding to red_black is 2_1. To find out if the
490 ## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
491 ## help screen for list of available colors and their numerical values.
493 ## What is more, there are two special values for the background color:
494 ## "transparent" and "current". The first one explicitly sets the background to
495 ## be transparent, while the second one allows you to preserve current
496 ## background color and change only the foreground one. It's used implicitly
497 ## when background color is not specified.
499 ## Moreover, it is possible to attach format information to selected color
500 ## variables by appending to their end a colon followed by one or more format
501 ## flags, e.g. black:b or red:ur. The following variables support this syntax:
502 ## visualizer_color, color1, color2, empty_tag_color, volume_color,
503 ## state_line_color, state_flags_color, progressbar_color,
504 ## progressbar_elapsed_color, player_state_color, statusbar_time_color,
505 ## alternative_ui_separator_color.
507 ## Note: due to technical limitations of older ncurses version, if 256 colors
508 ## are used there is a possibility that you'll be able to use only colors with
509 ## transparent background.
511 #colors_enabled = yes
513 #empty_tag_color = cyan
515 #header_window_color = default
517 #volume_color = default
519 #state_line_color = default
521 #state_flags_color = default:b
523 #main_window_color = yellow
525 #color1 = white
527 #color2 = green
529 #progressbar_color = black:b
531 #progressbar_elapsed_color = green:b
533 #statusbar_color = default
535 #statusbar_time_color = default:b
537 #player_state_color = default:b
539 #alternative_ui_separator_color = black:b
541 #window_border_color = green
543 #active_window_border = red