Fix InternetLyricsFetcher
[ncmpcpp.git] / doc / config
blobafe91180c39381b40ec4930e55a820b5af8ddf9a
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}
192 #alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
194 #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
196 #now_playing_prefix = $b
198 #now_playing_suffix = $/b
200 #browser_playlist_prefix = "$2playlist$9 "
202 #selected_item_prefix = $6
204 #selected_item_suffix = $9
206 #modified_item_prefix = $3> $9
209 ## Note: attributes are not supported for the following variables.
211 #song_window_title_format = {%a - }{%t}|{%f}
213 ## Note: Below variables are used for sorting songs in browser.  The sort mode
214 ## determines how songs are sorted, and can be used in combination with a sort
215 ## format to specify a custom sorting format.  Available values for
216 ## browser_sort_mode are "name", "mtime", "format" and "noop".
219 #browser_sort_mode = name
221 #browser_sort_format = {%a - }{%t}|{%f} {(%l)}
223 ##### columns settings #####
225 ## syntax of song columns list format is "column column etc."
227 ## - syntax for each column is:
229 ## (width of the column)[color of the column]{displayed tag}
231 ## Note: Width is by default in %, if you want a column to have fixed size, add
232 ## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
233 ## screen (so the real width will depend on actual screen size), whereas
234 ## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
235 ## is.
237 ## - color is optional (if you want the default one, leave the field empty).
239 ## Note: You can give a column additional attributes by putting appropriate
240 ## character after displayed tag character. Available attributes are:
242 ## - r - column will be right aligned
243 ## - E - if tag is empty, empty tag marker won't be displayed
245 ## You can also:
247 ## - give a column custom name by putting it after attributes, separated with
248 ##   character ':', e.g. {lr:Length} gives you right aligned column of lengths
249 ##   named "Length".
251 ## - define sequence of tags, that have to be displayed in case predecessor is
252 ##   empty in a way similar to the one in classic song format, i.e. using '|'
253 ##   character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
254 ##   display artist tag and then composer and performer if previous ones are not
255 ##   available.
258 #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
260 ##### various settings #####
263 ## Note: Custom command that will be executed each time song changes. Useful for
264 ## notifications etc.
266 #execute_on_song_change = ""
269 ## Note: Custom command that will be executed each time player state
270 ## changes. The environment variable MPD_PLAYER_STATE is set to the current
271 ## state (either unknown, play, pause, or stop) for its duration.
274 #execute_on_player_state_change = ""
276 #playlist_show_mpd_host = no
278 #playlist_show_remaining_time = no
280 #playlist_shorten_total_times = no
282 #playlist_separate_albums = no
285 ## Note: Possible display modes: classic, columns.
287 #playlist_display_mode = columns
289 #browser_display_mode = classic
291 #search_engine_display_mode = classic
293 #playlist_editor_display_mode = classic
295 #discard_colors_if_item_is_selected = yes
297 #show_duplicate_tags = true
299 #incremental_seeking = yes
301 #seek_time = 1
303 #volume_change_step = 2
305 #autocenter_mode = no
307 #centered_cursor = no
310 ## Note: You can specify third character which will be used to build 'empty'
311 ## part of progressbar.
313 #progressbar_look = =>
315 ## Available values: database, playlist.
317 #default_place_to_search_in = database
319 ## Available values: classic, alternative.
321 #user_interface = classic
323 #data_fetching_delay = yes
325 ## Available values: artist, album_artist, date, genre, composer, performer.
327 #media_library_primary_tag = artist
329 #media_library_albums_split_by_date = yes
331 ## Available values: wrapped, normal.
333 #default_find_mode = wrapped
335 #default_tag_editor_pattern = %n - %t
337 #header_visibility = yes
339 #statusbar_visibility = yes
341 #titles_visibility = yes
343 #header_text_scrolling = yes
345 #cyclic_scrolling = no
347 #lines_scrolled = 2
349 #lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
351 #follow_now_playing_lyrics = no
353 #fetch_lyrics_for_current_song_in_background = no
355 #store_lyrics_in_song_dir = no
357 #generate_win32_compatible_filenames = yes
359 #allow_for_physical_item_deletion = no
362 ## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
363 ## language you set and if it fails, it will fall back to english. Otherwise it
364 ## will use english the first time.
366 ## Note: Language has to be expressed as an ISO 639 alpha-2 code.
368 #lastfm_preferred_language = en
370 #space_add_mode = add_remove
372 #show_hidden_files_in_local_browser = no
375 ## How shall screen switcher work?
377 ## - "previous" - switch between the current and previous screen.
378 ## - "screen1,...,screenN" - switch between given sequence of screens.
380 ## Screens available for use: help, playlist, browser, search_engine,
381 ## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
382 ## lyrics, last_fm.
384 #screen_switcher_mode = playlist, browser
387 ## Note: You can define startup screen by choosing screen from the list above.
389 #startup_screen = playlist
392 ## Note: You can define startup slave screen by choosing screen from the list
393 ## above or an empty value for no slave screen.
395 #startup_slave_screen = ""
397 #startup_slave_screen_focus = no
400 ## Default width of locked screen (in %).  Acceptable values are from 20 to 80.
403 #locked_screen_width_part = 50
405 #ask_for_locked_screen_width_part = yes
407 #jump_to_now_playing_song_at_start = yes
409 #ask_before_clearing_playlists = yes
411 #clock_display_seconds = no
413 #display_volume_level = yes
415 #display_bitrate = no
417 #display_remaining_time = no
419 ## Available values: none, basic, extended, perl.
421 #regular_expressions = perl
424 ## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
425 ## sorting items in browser, tags in media library, etc.
427 #ignore_leading_the = no
430 ## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
431 ## filtering lists. This takes an effect only if boost was compiled with ICU
432 ## support.
434 #ignore_diacritics = no
436 #block_search_constraints_change_if_items_found = yes
438 #mouse_support = yes
440 #mouse_list_scroll_whole_page = yes
442 #empty_tag_marker = <empty>
444 #tags_separator = " | "
446 #tag_editor_extended_numeration = no
448 #media_library_sort_by_mtime = no
450 #enable_window_title = yes
453 ## Note: You can choose default search mode for search engine. Available modes
454 ## are:
456 ## - 1 - use mpd built-in searching (no regexes, pattern matching)
458 ## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
459 ##       if your mpd is on a remote machine, downloading big database to process
460 ##       it can take a while
462 ## - 3 - match only exact values (this mode uses mpd function for searching in
463 ##       database and local one for searching in current playlist)
466 #search_engine_default_search_mode = 1
468 #external_editor = nano
470 ## Note: set to yes if external editor is a console application.
472 #use_console_editor = yes
474 ##### colors definitions #####
476 ## It is possible to set a background color by setting a color value
477 ## "<foreground>_<background>", e.g. red_black will set foregound color to red
478 ## and background color to black.
480 ## In addition, for terminals that support 256 colors it is possible to set one
481 ## of them by using a number in range [1, 256] instead of color name,
482 ## e.g. numerical value corresponding to red_black is 2_1. To find out if the
483 ## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
484 ## help screen for list of available colors and their numerical values.
486 ## What is more, there are two special values for the background color:
487 ## "transparent" and "current". The first one explicitly sets the background to
488 ## be transparent, while the second one allows you to preserve current
489 ## background color and change only the foreground one. It's used implicitly
490 ## when background color is not specified.
492 ## Moreover, it is possible to attach format information to selected color
493 ## variables by appending to their end a colon followed by one or more format
494 ## flags, e.g. black:b or red:ur. The following variables support this syntax:
495 ## visualizer_color, color1, color2, empty_tag_color, volume_color,
496 ## state_line_color, state_flags_color, progressbar_color,
497 ## progressbar_elapsed_color, player_state_color, statusbar_time_color,
498 ## alternative_ui_separator_color.
500 ## Note: due to technical limitations of older ncurses version, if 256 colors
501 ## are used there is a possibility that you'll be able to use only colors with
502 ## transparent background.
504 #colors_enabled = yes
506 #empty_tag_color = cyan
508 #header_window_color = default
510 #volume_color = default
512 #state_line_color = default
514 #state_flags_color = default:b
516 #main_window_color = yellow
518 #color1 = white
520 #color2 = green
522 #main_window_highlight_color = yellow
524 #progressbar_color = black:b
526 #progressbar_elapsed_color = green:b
528 #statusbar_color = default
530 #statusbar_time_color = default:b
532 #player_state_color = default:b
534 #alternative_ui_separator_color = black:b
536 #active_column_color = red
538 #window_border_color = green
540 #active_window_border = red