config 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. ##### directories ######
  2. ##
  3. ## Directory for storing ncmpcpp related files. Changing it is useful if you
  4. ## want to store everything somewhere else and provide command line setting for
  5. ## alternative location to config file which defines that while launching
  6. ## ncmpcpp.
  7. ##
  8. #
  9. ncmpcpp_directory = ~/.cache/ncmpcpp
  10. #
  11. ##
  12. ## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
  13. ## MPD clients (eg. ncmpc) also use that location.
  14. ##
  15. #
  16. lyrics_directory = ~/.cache/ncmpcpp/lyrics
  17. #
  18. ##### connection settings #####
  19. #
  20. mpd_host = localhost
  21. #
  22. mpd_port = 6600
  23. #
  24. #mpd_connection_timeout = 5
  25. #
  26. ## Needed for tag editor and file operations to work.
  27. ##
  28. mpd_music_dir = ~/Music
  29. #
  30. #mpd_crossfade_time = 5
  31. #
  32. # Exclude pattern for random song action
  33. # http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
  34. #random_exclude_pattern = "^(temp|midi_songs).*"
  35. #
  36. ##### music visualizer #####
  37. ##
  38. ## Note: In order to make music visualizer work you'll need to use mpd fifo
  39. ## output, whose format parameter has to be set to 44100:16:1 for mono
  40. ## visualization or 44100:16:2 for stereo visualization. Example configuration
  41. ## (it has to be put into mpd.conf):
  42. ##
  43. ## audio_output {
  44. ## type "fifo"
  45. ## name "Visualizer feed"
  46. ## path "/tmp/mpd.fifo"
  47. ## format "44100:16:2"
  48. ## }
  49. ##
  50. #
  51. visualizer_data_source = ~/.cache/mpd/fifo
  52. #
  53. ##
  54. ## Note: Below parameter is needed for ncmpcpp to determine which output
  55. ## provides data for visualizer and thus allow syncing between visualization and
  56. ## sound as currently there are some problems with it.
  57. ##
  58. #
  59. #visualizer_output_name = Visualizer feed
  60. #
  61. ##
  62. ## If you set format to 44100:16:2, make it 'yes'.
  63. ##
  64. visualizer_in_stereo = yes
  65. #
  66. ##
  67. ## Note: Below parameter defines how often ncmpcpp has to "synchronize"
  68. ## visualizer and audio outputs. 30 seconds is optimal value, but if you
  69. ## experience synchronization problems, set it to lower value. Keep in mind
  70. ## that sane values start with >=10.
  71. ##
  72. #
  73. #visualizer_sync_interval = 30
  74. #
  75. ##
  76. ## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
  77. ## with fftw3 support.
  78. ##
  79. #
  80. ## Available values: spectrum, wave, wave_filled, ellipse.
  81. ##
  82. visualizer_type = spectrum
  83. #
  84. visualizer_look = ●▮
  85. #
  86. #visualizer_color = blue, cyan, green, yellow, magenta, red
  87. #
  88. ## Alternative subset of 256 colors for terminals that support it.
  89. ##
  90. visualizer_color = 114, 115, 116, 111, 207, 206, 205, 204, 201, 200
  91. #
  92. ##### system encoding #####
  93. ##
  94. ## ncmpcpp should detect your charset encoding but if it failed to do so, you
  95. ## can specify charset encoding you are using here.
  96. ##
  97. ## Note: You can see whether your ncmpcpp build supports charset detection by
  98. ## checking output of `ncmpcpp --version`.
  99. ##
  100. ## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
  101. ## if your encoding is different.
  102. ##
  103. #
  104. #system_encoding = ""
  105. #
  106. ##### delays #####
  107. #
  108. ## Time of inactivity (in seconds) after playlist highlighting will be disabled
  109. ## (0 = always on).
  110. ##
  111. playlist_disable_highlight_delay = 1
  112. #
  113. ## Defines how long messages are supposed to be visible.
  114. ##
  115. message_delay_time = 1
  116. #
  117. ##### song format #####
  118. ##
  119. ## For a song format you can use:
  120. ##
  121. ## %l - length
  122. ## %f - filename
  123. ## %D - directory
  124. ## %a - artist
  125. ## %A - album artist
  126. ## %t - title
  127. ## %b - album
  128. ## %y - date
  129. ## %n - track number (01/12 -> 01)
  130. ## %N - full track info (01/12 -> 01/12)
  131. ## %g - genre
  132. ## %c - composer
  133. ## %p - performer
  134. ## %d - disc
  135. ## %C - comment
  136. ## %P - priority
  137. ## $R - begin right alignment
  138. ##
  139. ## If you want to make sure that a part of the format is displayed only when
  140. ## certain tags are present, you can archieve it by grouping them with brackets,
  141. ## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
  142. ## present or '' otherwise. It is also possible to define a list of
  143. ## alternatives by providing several groups and separating them with '|',
  144. ## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
  145. ## not present.
  146. ##
  147. ## Note: If you want to set limit on maximal length of a tag, just put the
  148. ## appropriate number between % and character that defines tag type, e.g. to
  149. ## make album take max. 20 terminal cells, use '%20b'.
  150. ##
  151. ## In addition, formats support markers used for text attributes. They are
  152. ## followed by character '$'. After that you can put:
  153. ##
  154. ## - 0 - default window color (discards all other colors)
  155. ## - 1 - black
  156. ## - 2 - red
  157. ## - 3 - green
  158. ## - 4 - yellow
  159. ## - 5 - blue
  160. ## - 6 - magenta
  161. ## - 7 - cyan
  162. ## - 8 - white
  163. ## - 9 - end of current color
  164. ## - b - bold text
  165. ## - u - underline text
  166. ## - r - reverse colors
  167. ## - a - use alternative character set
  168. ##
  169. ## If you don't want to use a non-color attribute anymore, just put it again,
  170. ## but this time insert character '/' between '$' and attribute character,
  171. ## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
  172. ## reversed colors.
  173. ##
  174. ## If you want to use 256 colors and/or background colors in formats (the naming
  175. ## scheme is described below in section about color definitions), it can be done
  176. ## with the syntax $(COLOR), e.g. to set the artist tag to one of the
  177. ## non-standard colors and make it have yellow background, you need to write
  178. ## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
  179. ## with attributes listed above.
  180. ##
  181. ## Note: colors can be nested.
  182. ##
  183. #
  184. #song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
  185. #
  186. #song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
  187. #
  188. #song_library_format = {%n - }{%t}|{%f}
  189. #
  190. alternative_header_first_line_format = $b$1$aqqu$/a$9$(195) {{%t}|{%f}} $(end)$1$atqq$/a$9$/b
  191. #
  192. alternative_header_second_line_format = {{$(32)$b%a$/b$(end)}{ - $(63)%b$(end)}{ [$(228)%y$(end)]}}|{%D}
  193. #
  194. current_item_prefix = $(255_240)
  195. #
  196. current_item_suffix = $(end)
  197. #
  198. current_item_inactive_column_prefix = $(48_234)
  199. #
  200. current_item_inactive_column_suffix = $(end)
  201. #
  202. now_playing_prefix = $(255_237)
  203. #
  204. now_playing_suffix = $(end)
  205. #
  206. browser_playlist_prefix = "$(10)▶$(end) "
  207. #
  208. #selected_item_prefix = $6
  209. #
  210. #selected_item_suffix = $9
  211. #
  212. #modified_item_prefix = $3> $9
  213. #
  214. ##
  215. ## Note: attributes are not supported for the following variables.
  216. ##
  217. #song_window_title_format = {%a - }{%t}|{%f}
  218. ##
  219. ## Note: Below variables are used for sorting songs in browser. The sort mode
  220. ## determines how songs are sorted, and can be used in combination with a sort
  221. ## format to specify a custom sorting format. Available values for
  222. ## browser_sort_mode are "name", "mtime", "format" and "noop".
  223. ##
  224. #
  225. #browser_sort_mode = name
  226. browser_sort_mode = format
  227. #
  228. #browser_sort_format = {%a - }{%t}|{%f} {(%l)}
  229. browser_sort_format = {%n}
  230. #
  231. ##### columns settings #####
  232. ##
  233. ## syntax of song columns list format is "column column etc."
  234. ##
  235. ## - syntax for each column is:
  236. ##
  237. ## (width of the column)[color of the column]{displayed tag}
  238. ##
  239. ## Note: Width is by default in %, if you want a column to have fixed size, add
  240. ## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
  241. ## screen (so the real width will depend on actual screen size), whereas
  242. ## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
  243. ## is.
  244. ##
  245. ## - color is optional (if you want the default one, leave the field empty).
  246. ##
  247. ## Note: You can give a column additional attributes by putting appropriate
  248. ## character after displayed tag character. Available attributes are:
  249. ##
  250. ## - r - column will be right aligned
  251. ## - E - if tag is empty, empty tag marker won't be displayed
  252. ##
  253. ## You can also:
  254. ##
  255. ## - give a column custom name by putting it after attributes, separated with
  256. ## character ':', e.g. {lr:Length} gives you right aligned column of lengths
  257. ## named "Length".
  258. ##
  259. ## - define sequence of tags, that have to be displayed in case predecessor is
  260. ## empty in a way similar to the one in classic song format, i.e. using '|'
  261. ## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
  262. ## display artist tag and then composer and performer if previous ones are not
  263. ## available.
  264. ##
  265. #
  266. song_columns_list_format = (4f)[210]{nE} (50)[195]{t|f:Title} (20)[32]{a} (20)[63]{b} (6f)[228]{l}
  267. #
  268. ##### various settings #####
  269. #
  270. ##
  271. ## Note: Custom command that will be executed each time song changes. Useful for
  272. ## notifications etc.
  273. ##
  274. # execute_on_song_change = "~/.config/ncmpcpp/img"
  275. #
  276. ##
  277. ## Note: Custom command that will be executed each time player state
  278. ## changes. The environment variable MPD_PLAYER_STATE is set to the current
  279. ## state (either unknown, play, pause, or stop) for its duration.
  280. ##
  281. #
  282. #execute_on_player_state_change = ""
  283. #
  284. #playlist_show_mpd_host = no
  285. #
  286. #playlist_show_remaining_time = no
  287. #
  288. #playlist_shorten_total_times = no
  289. #
  290. playlist_separate_albums = yes
  291. #
  292. ##
  293. ## Note: Possible display modes: classic, columns.
  294. ##
  295. #playlist_display_mode = columns
  296. #
  297. browser_display_mode = columns
  298. #
  299. search_engine_display_mode = columns
  300. #
  301. playlist_editor_display_mode = columns
  302. #
  303. #discard_colors_if_item_is_selected = yes
  304. #
  305. #show_duplicate_tags = yes
  306. #
  307. #incremental_seeking = yes
  308. #
  309. #seek_time = 1
  310. #
  311. #volume_change_step = 2
  312. #
  313. autocenter_mode = yes
  314. #
  315. centered_cursor = yes
  316. #
  317. ##
  318. ## Note: You can specify third character which will be used to build 'empty'
  319. ## part of progressbar.
  320. ##
  321. progressbar_look = ─I
  322. #
  323. ## Available values: database, playlist.
  324. ##
  325. #default_place_to_search_in = database
  326. #
  327. ## Available values: classic, alternative.
  328. ##
  329. user_interface = alternative
  330. #
  331. #data_fetching_delay = yes
  332. #
  333. ## Available values: artist, album_artist, date, genre, composer, performer.
  334. ##
  335. #media_library_primary_tag = artist
  336. #
  337. #media_library_albums_split_by_date = yes
  338. #
  339. ## Available values: wrapped, normal.
  340. ##
  341. #default_find_mode = wrapped
  342. #
  343. #default_tag_editor_pattern = %n - %t
  344. #
  345. #header_visibility = yes
  346. #
  347. statusbar_visibility = no
  348. #
  349. ## Show the "Connected to ..." message on startup
  350. #connected_message_on_startup = yes
  351. #
  352. titles_visibility = no
  353. #
  354. #header_text_scrolling = yes
  355. #
  356. cyclic_scrolling = yes
  357. #
  358. #lines_scrolled = 2
  359. #
  360. #lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, 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 = 2
  478. #
  479. external_editor = vim
  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 = 116
  518. #
  519. header_window_color = 153
  520. #
  521. volume_color = 57
  522. #
  523. state_line_color = 240
  524. #
  525. state_flags_color = 105
  526. #
  527. main_window_color = 121
  528. #
  529. color1 = 250
  530. #
  531. color2 = 88
  532. #
  533. #progressbar_color = black:b
  534. #
  535. #progressbar_elapsed_color = green:b
  536. #
  537. statusbar_color = 247
  538. #
  539. statusbar_time_color = 240
  540. #
  541. player_state_color = 104:b
  542. #
  543. alternative_ui_separator_color = 244:b
  544. #
  545. #window_border_color = green
  546. #
  547. #active_window_border = red
  548. #