config 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  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. ##############################################################################
  5. #
  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.
  12. ##
  13. #
  14. #ncmpcpp_directory = ~/.ncmpcpp
  15. #
  16. ##
  17. ## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
  18. ## MPD clients (eg. ncmpc) also use that location.
  19. ##
  20. #
  21. #lyrics_directory = ~/.lyrics
  22. #
  23. ##### connection settings #####
  24. #
  25. #mpd_host = localhost
  26. #
  27. #mpd_port = 6600
  28. #
  29. #mpd_connection_timeout = 5
  30. #
  31. ## Needed for tag editor and file operations to work.
  32. ##
  33. mpd_music_dir = ~/Music
  34. #
  35. #mpd_crossfade_time = 5
  36. #
  37. ##### music visualizer #####
  38. ##
  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):
  43. ##
  44. ## audio_output {
  45. ## type "fifo"
  46. ## name "Visualizer feed"
  47. ## path "/tmp/mpd.fifo"
  48. ## format "44100:16:2"
  49. ## }
  50. ##
  51. #
  52. visualizer_fifo_path = /tmp/mpd.fifo
  53. #
  54. ##
  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.
  58. ##
  59. #
  60. #visualizer_output_name = Visualizer feed
  61. #
  62. ##
  63. ## If you set format to 44100:16:2, make it 'yes'.
  64. ##
  65. visualizer_in_stereo = yes
  66. #
  67. ##
  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.
  72. ##
  73. #
  74. #visualizer_sync_interval = 30
  75. #
  76. ##
  77. ## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
  78. ## with fftw3 support.
  79. ##
  80. #
  81. ## Available values: spectrum, wave, wave_filled, ellipse.
  82. ##
  83. #visualizer_type = wave
  84. #
  85. visualizer_look = ●▮
  86. #visualizer_look = "◆│"
  87. #visualizer_look = "▊▊"
  88. #
  89. visualizer_color = blue, cyan, green, yellow, magenta, red
  90. #
  91. ## Alternative subset of 256 colors for terminals that support it.
  92. ##
  93. #visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161
  94. #
  95. ##### system encoding #####
  96. ##
  97. ## ncmpcpp should detect your charset encoding but if it failed to do so, you
  98. ## can specify charset encoding you are using here.
  99. ##
  100. ## Note: You can see whether your ncmpcpp build supports charset detection by
  101. ## checking output of `ncmpcpp --version`.
  102. ##
  103. ## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
  104. ## if your encoding is different.
  105. ##
  106. #
  107. #system_encoding = ""
  108. system_encoding = "UTF-8"
  109. #
  110. ##### delays #####
  111. #
  112. ## Time of inactivity (in seconds) after playlist highlighting will be disabled
  113. ## (0 = always on).
  114. ##
  115. #playlist_disable_highlight_delay = 5
  116. #
  117. ## Defines how long messages are supposed to be visible.
  118. ##
  119. #message_delay_time = 5
  120. #
  121. ##### song format #####
  122. ##
  123. ## For a song format you can use:
  124. ##
  125. ## %l - length
  126. ## %f - filename
  127. ## %D - directory
  128. ## %a - artist
  129. ## %A - album artist
  130. ## %t - title
  131. ## %b - album
  132. ## %y - date
  133. ## %n - track number (01/12 -> 01)
  134. ## %N - full track info (01/12 -> 01/12)
  135. ## %g - genre
  136. ## %c - composer
  137. ## %p - performer
  138. ## %d - disc
  139. ## %C - comment
  140. ## %P - priority
  141. ## $R - begin right alignment
  142. ##
  143. ## If you want to make sure that a part of the format is displayed only when
  144. ## certain tags are present, you can archieve it by grouping them with brackets,
  145. ## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
  146. ## present or '' otherwise. It is also possible to define a list of
  147. ## alternatives by providing several groups and separating them with '|',
  148. ## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
  149. ## not present.
  150. ##
  151. ## Note: If you want to set limit on maximal length of a tag, just put the
  152. ## appropriate number between % and character that defines tag type, e.g. to
  153. ## make album take max. 20 terminal cells, use '%20b'.
  154. ##
  155. ## In addition, formats support markers used for text attributes. They are
  156. ## followed by character '$'. After that you can put:
  157. ##
  158. ## - 0 - default window color (discards all other colors)
  159. ## - 1 - black
  160. ## - 2 - red
  161. ## - 3 - green
  162. ## - 4 - yellow
  163. ## - 5 - blue
  164. ## - 6 - magenta
  165. ## - 7 - cyan
  166. ## - 8 - white
  167. ## - 9 - end of current color
  168. ## - b - bold text
  169. ## - u - underline text
  170. ## - r - reverse colors
  171. ## - a - use alternative character set
  172. ##
  173. ## If you don't want to use a non-color attribute anymore, just put it again,
  174. ## but this time insert character '/' between '$' and attribute character,
  175. ## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
  176. ## reversed colors.
  177. ##
  178. ## If you want to use 256 colors and/or background colors in formats (the naming
  179. ## scheme is described below in section about color definitions), it can be done
  180. ## with the syntax $(COLOR), e.g. to set the artist tag to one of the
  181. ## non-standard colors and make it have yellow background, you need to write
  182. ## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
  183. ## with attributes listed above.
  184. ##
  185. ## Note: colors can be nested.
  186. ##
  187. #
  188. #song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
  189. #
  190. #song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
  191. #
  192. #song_library_format = {%n - }{%t}|{%f}
  193. #
  194. #alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
  195. #
  196. #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
  197. #
  198. #current_item_prefix = $(yellow)$r
  199. #
  200. #current_item_suffix = $/r$(end)
  201. #
  202. #current_item_inactive_column_prefix = $(white)$r
  203. #
  204. #current_item_inactive_column_suffix = $/r$(end)
  205. #
  206. #now_playing_prefix = $b
  207. #
  208. #now_playing_suffix = $/b
  209. #
  210. #browser_playlist_prefix = "$2playlist$9 "
  211. #
  212. #selected_item_prefix = $6
  213. #
  214. #selected_item_suffix = $9
  215. #
  216. #modified_item_prefix = $3> $9
  217. #
  218. ##
  219. ## Note: attributes are not supported for the following variables.
  220. ##
  221. #song_window_title_format = {%a - }{%t}|{%f}
  222. ##
  223. ## Note: Below variables are used for sorting songs in browser. The sort mode
  224. ## determines how songs are sorted, and can be used in combination with a sort
  225. ## format to specify a custom sorting format. Available values for
  226. ## browser_sort_mode are "name", "mtime", "format" and "noop".
  227. ##
  228. #
  229. #browser_sort_mode = name
  230. #
  231. #browser_sort_format = {%a - }{%t}|{%f} {(%l)}
  232. #
  233. ##### columns settings #####
  234. ##
  235. ## syntax of song columns list format is "column column etc."
  236. ##
  237. ## - syntax for each column is:
  238. ##
  239. ## (width of the column)[color of the column]{displayed tag}
  240. ##
  241. ## Note: Width is by default in %, if you want a column to have fixed size, add
  242. ## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
  243. ## screen (so the real width will depend on actual screen size), whereas
  244. ## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
  245. ## is.
  246. ##
  247. ## - color is optional (if you want the default one, leave the field empty).
  248. ##
  249. ## Note: You can give a column additional attributes by putting appropriate
  250. ## character after displayed tag character. Available attributes are:
  251. ##
  252. ## - r - column will be right aligned
  253. ## - E - if tag is empty, empty tag marker won't be displayed
  254. ##
  255. ## You can also:
  256. ##
  257. ## - give a column custom name by putting it after attributes, separated with
  258. ## character ':', e.g. {lr:Length} gives you right aligned column of lengths
  259. ## named "Length".
  260. ##
  261. ## - define sequence of tags, that have to be displayed in case predecessor is
  262. ## empty in a way similar to the one in classic song format, i.e. using '|'
  263. ## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
  264. ## display artist tag and then composer and performer if previous ones are not
  265. ## available.
  266. ##
  267. #
  268. #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
  269. #
  270. ##### various settings #####
  271. #
  272. ##
  273. ## Note: Custom command that will be executed each time song changes. Useful for
  274. ## notifications etc.
  275. ##
  276. #execute_on_song_change = ""
  277. #
  278. ##
  279. ## Note: Custom command that will be executed each time player state
  280. ## changes. The environment variable MPD_PLAYER_STATE is set to the current
  281. ## state (either unknown, play, pause, or stop) for its duration.
  282. ##
  283. #
  284. #execute_on_player_state_change = ""
  285. #
  286. #playlist_show_mpd_host = no
  287. #
  288. #playlist_show_remaining_time = no
  289. #
  290. #playlist_shorten_total_times = no
  291. #
  292. #playlist_separate_albums = no
  293. #
  294. ##
  295. ## Note: Possible display modes: classic, columns.
  296. ##
  297. #playlist_display_mode = columns
  298. #
  299. #browser_display_mode = classic
  300. #
  301. #search_engine_display_mode = classic
  302. #
  303. #playlist_editor_display_mode = classic
  304. #
  305. #discard_colors_if_item_is_selected = yes
  306. #
  307. #show_duplicate_tags = yes
  308. #
  309. #incremental_seeking = yes
  310. #
  311. #seek_time = 1
  312. #
  313. #volume_change_step = 2
  314. #
  315. #autocenter_mode = no
  316. #
  317. #centered_cursor = no
  318. #
  319. ##
  320. ## Note: You can specify third character which will be used to build 'empty'
  321. ## part of progressbar.
  322. ##
  323. #progressbar_look = =>
  324. #
  325. ## Available values: database, playlist.
  326. ##
  327. #default_place_to_search_in = database
  328. #
  329. ## Available values: classic, alternative.
  330. ##
  331. #user_interface = classic
  332. user_interface = alternative
  333. #
  334. #data_fetching_delay = yes
  335. #
  336. ## Available values: artist, album_artist, date, genre, composer, performer.
  337. ##
  338. #media_library_primary_tag = artist
  339. #
  340. #media_library_albums_split_by_date = yes
  341. #
  342. ## Available values: wrapped, normal.
  343. ##
  344. #default_find_mode = wrapped
  345. #
  346. #default_tag_editor_pattern = %n - %t
  347. #
  348. #header_visibility = yes
  349. #
  350. #statusbar_visibility = yes
  351. #
  352. #titles_visibility = yes
  353. #
  354. #header_text_scrolling = yes
  355. #
  356. #cyclic_scrolling = no
  357. #
  358. #lines_scrolled = 2
  359. #
  360. #lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
  361. #
  362. #follow_now_playing_lyrics = no
  363. #
  364. #fetch_lyrics_for_current_song_in_background = no
  365. #
  366. #store_lyrics_in_song_dir = no
  367. #
  368. #generate_win32_compatible_filenames = yes
  369. #
  370. #allow_for_physical_item_deletion = no
  371. #
  372. ##
  373. ## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
  374. ## language you set and if it fails, it will fall back to english. Otherwise it
  375. ## will use english the first time.
  376. ##
  377. ## Note: Language has to be expressed as an ISO 639 alpha-2 code.
  378. ##
  379. #lastfm_preferred_language = en
  380. #
  381. #space_add_mode = add_remove
  382. #
  383. #show_hidden_files_in_local_browser = no
  384. #
  385. ##
  386. ## How shall screen switcher work?
  387. ##
  388. ## - "previous" - switch between the current and previous screen.
  389. ## - "screen1,...,screenN" - switch between given sequence of screens.
  390. ##
  391. ## Screens available for use: help, playlist, browser, search_engine,
  392. ## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
  393. ## lyrics, last_fm.
  394. ##
  395. #screen_switcher_mode = playlist, browser
  396. #
  397. ##
  398. ## Note: You can define startup screen by choosing screen from the list above.
  399. ##
  400. #startup_screen = playlist
  401. #
  402. ##
  403. ## Note: You can define startup slave screen by choosing screen from the list
  404. ## above or an empty value for no slave screen.
  405. ##
  406. #startup_slave_screen = ""
  407. #
  408. #startup_slave_screen_focus = no
  409. #
  410. ##
  411. ## Default width of locked screen (in %). Acceptable values are from 20 to 80.
  412. ##
  413. #
  414. #locked_screen_width_part = 50
  415. #
  416. #ask_for_locked_screen_width_part = yes
  417. #
  418. #jump_to_now_playing_song_at_start = yes
  419. #
  420. #ask_before_clearing_playlists = yes
  421. #
  422. #clock_display_seconds = no
  423. #
  424. #display_volume_level = yes
  425. #
  426. #display_bitrate = no
  427. #
  428. #display_remaining_time = no
  429. #
  430. ## Available values: none, basic, extended, perl.
  431. ##
  432. #regular_expressions = perl
  433. #
  434. ##
  435. ## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
  436. ## sorting items in browser, tags in media library, etc.
  437. ##
  438. #ignore_leading_the = no
  439. #
  440. ##
  441. ## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
  442. ## filtering lists. This takes an effect only if boost was compiled with ICU
  443. ## support.
  444. ##
  445. #ignore_diacritics = no
  446. #
  447. #block_search_constraints_change_if_items_found = yes
  448. #
  449. #mouse_support = yes
  450. #
  451. #mouse_list_scroll_whole_page = yes
  452. #
  453. #empty_tag_marker = <empty>
  454. #
  455. #tags_separator = " | "
  456. #
  457. #tag_editor_extended_numeration = no
  458. #
  459. #media_library_sort_by_mtime = no
  460. #
  461. #enable_window_title = yes
  462. #
  463. ##
  464. ## Note: You can choose default search mode for search engine. Available modes
  465. ## are:
  466. ##
  467. ## - 1 - use mpd built-in searching (no regexes, pattern matching)
  468. ##
  469. ## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
  470. ## if your mpd is on a remote machine, downloading big database to process
  471. ## it can take a while
  472. ##
  473. ## - 3 - match only exact values (this mode uses mpd function for searching in
  474. ## database and local one for searching in current playlist)
  475. ##
  476. #
  477. #search_engine_default_search_mode = 1
  478. #
  479. #external_editor = nano
  480. #
  481. ## Note: set to yes if external editor is a console application.
  482. ##
  483. #use_console_editor = yes
  484. #
  485. ##### colors definitions #####
  486. ##
  487. ## It is possible to set a background color by setting a color value
  488. ## "<foreground>_<background>", e.g. red_black will set foregound color to red
  489. ## and background color to black.
  490. ##
  491. ## In addition, for terminals that support 256 colors it is possible to set one
  492. ## of them by using a number in range [1, 256] instead of color name,
  493. ## e.g. numerical value corresponding to red_black is 2_1. To find out if the
  494. ## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
  495. ## help screen for list of available colors and their numerical values.
  496. ##
  497. ## What is more, there are two special values for the background color:
  498. ## "transparent" and "current". The first one explicitly sets the background to
  499. ## be transparent, while the second one allows you to preserve current
  500. ## background color and change only the foreground one. It's used implicitly
  501. ## when background color is not specified.
  502. ##
  503. ## Moreover, it is possible to attach format information to selected color
  504. ## variables by appending to their end a colon followed by one or more format
  505. ## flags, e.g. black:b or red:ur. The following variables support this syntax:
  506. ## visualizer_color, color1, color2, empty_tag_color, volume_color,
  507. ## state_line_color, state_flags_color, progressbar_color,
  508. ## progressbar_elapsed_color, player_state_color, statusbar_time_color,
  509. ## alternative_ui_separator_color.
  510. ##
  511. ## Note: due to technical limitations of older ncurses version, if 256 colors
  512. ## are used there is a possibility that you'll be able to use only colors with
  513. ## transparent background.
  514. #
  515. #colors_enabled = yes
  516. #
  517. #empty_tag_color = cyan
  518. #
  519. #header_window_color = default
  520. #
  521. #volume_color = default
  522. #
  523. #state_line_color = default
  524. #
  525. #state_flags_color = default:b
  526. #
  527. #main_window_color = yellow
  528. #
  529. #color1 = white
  530. #
  531. #color2 = green
  532. #
  533. #progressbar_color = black:b
  534. #
  535. #progressbar_elapsed_color = green:b
  536. #
  537. #statusbar_color = default
  538. #
  539. #statusbar_time_color = default:b
  540. #
  541. #player_state_color = default:b
  542. #
  543. #alternative_ui_separator_color = black:b
  544. #
  545. #window_border_color = green
  546. #
  547. #active_window_border = red
  548. #