Scroll to navigation

ncmpcpp(1) General Commands Manual ncmpcpp(1)

NAME

ncmpcpp - An ncurses Music Player Daemon (MPD) client.

SYNOPSIS

ncmpcpp [options]

DESCRIPTION

ncmpcpp is an ncurses client for MPD (Music Player Daemon), inspired by ncmpc.

Read more about MPD at http://www.musicpd.org

OPTIONS

Mandatory arguments to long options are mandatory for short options too.

Connect to server at host [localhost]
Connect to server at port [6600]
Print current song using given format and exit
Specify configuration file(s)
Ignore unknown and invalid options in configuration files
Specify bindings file(s)
Specify the startup screen (<name> may be: help, playlist, browser, search_engine, media_library, playlist_editor, tag_editor, outputs, visualizer, clock)
Specify the startup slave screen (<name> may be: help, playlist, browser, search_engine, media_library, playlist_editor, tag_editor, outputs, visualizer, clock)
Suppress logs and excess output
-?, --help
Display help.
Display version information.

CONFIGURATION

When ncmpcpp starts, it tries to read settings from $XDG_CONFIG_HOME/ncmpcpp/config and $HOME/.ncmpcpp/config files. If no configuration is found, ncmpcpp uses its default configuration. An example configuration file containing all default values is provided with ncmpcpp and can be usually found in /usr/share/doc/ncmpcpp (the exact location may depend on your operating system or configure prefix).

Note: Configuration option values can either be enclosed in quotation marks or not.
- If they are enclosed, the leftmost and the rightmost quotation marks are treated as delimiters, therefore it is not necessary to escape quotation marks you use within the value itself.
- If they are not, any whitespace characters between = and the first printable character of the value, as well as whitespace characters after the last printable character of the value are trimmed.

Therefore the rule of thumb is: if you need whitespaces at the beginning or at the end of the value, enclose it in quotation marks. Otherwise, don't.

Note: COLOR has to be the name (not a number) of one of colors 1-8 from SONG FORMAT section.

Supported configuration options:

Directory for storing ncmpcpp related files. Changing it is useful if you want to store everything somewhere else and provide command line setting for alternative location to config file which defines that while launching ncmpcpp.
Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other MPD clients (eg. ncmpc) also use that location.
Connect to MPD running on specified host/unix socket. When HOST starts with a '/', it is assumed to be a unix socket. Note: MPD_HOST environment variable overrides this setting.
Connect to MPD on the specified port. Note: MPD_PORT environment variable overrides this setting.
Search for files in specified directory. This is needed for tag editor to work.
Set connection timeout to MPD to given value.
Default number of seconds to crossfade, if enabled by ncmpcpp.
Source of data for the visualizer. For MPD it's going to be a fifo output, for Mopidy a udpsink output (see the example configuration file for more details).
Name of output that provides data for visualizer. Needed to keep sound and visualization in sync.
Should be set to 'yes', if fifo output's format was set to 44100:16:2.
Defines default visualizer type (spectrum is available only if ncmpcpp was compiled with fftw support).
Defines visualizer's look (string has to be exactly 2 characters long: first one is for wave whereas second for frequency spectrum).
Comma separated list of colors to be used in music visualization.
The amount of frames per second for the visualizer.
Automatically scale visualizer size.
For spectrum visualizer, use unicode block characters for a smoother, more continuous look. This will override the visualizer_look option. With transparent terminals and visualizer_in_stereo set, artifacts may be visible on the bottom half of the visualization.
For spectrum visualizer, a value between 1 and 5 inclusive. Specifying a larger value makes the visualizer look at a larger slice of time, which results in less jumpy visualizer output.
Gain for spectrum visualizer in dB, larger/smaller values shift bars up/down.
For spectrum visualizer, left-most frequency of visualizer, must be less than HZ MAX.
For spectrum visualizer, right-most frequency of visualizer, must be greater than HZ MIN.
If you use encoding other than utf8, set it in order to handle utf8 encoded strings properly.
Delay for highlighting playlist since the last key was pressed. If set to 0, highlighting never fades away.
Delay for displayed messages to remain visible.
Song format for lists of songs.
Song format for statusbar.
Song format for media library.
Now playing song format for the first line in alternative user interface header window.
Now playing song format for the second line in alternative user interface header window.
Prefix for currently selected item.
Suffix for currently selected item.
Prefix for currently selected item in the inactive column.
Suffix for currently selected item in the inactive column.
Prefix for currently playing song.
Suffix for currently playing song.
Prefix for playlists in Browser.
Prefix for selected items.
Suffix for selected items.
Prefix for modified item (tag editor).
Determines sort mode for browser. Possible values are "type", "name", "mtime", "format" and "none".
Format to use for sorting songs in browser. For this option to be effective, browser_sort_mode must be set to "format".
Song format for window title.
Format for songs' list displayed in columns.
Shell command to execute on song change.
Shell command to execute on player state change. The environment variable MPD_PLAYER_STATE is set to the current state (either unknown, play, pause, or stop) for its duration.
If enabled, current MPD host will be shown in playlist.
If enabled, time remaining to end of playlist will be shown after playlist statistics.
If enabled, total/remaining playlist time displayed in statusbar will be shown using shortened units' names (d:h:m:s instead of days:hours:minutes:seconds).
If enabled, separators will be placed between albums.
Default display mode for Playlist.
Default display mode for Browser.
Default display mode for Search engine.
Default display mode for Playlist editor.
Indicates whether custom colors of tags have to be discarded if item is selected or not.
Indicates whether ncmpcpp should display multiple tags as-is or remove duplicates.
If enabled, seek time will increment by one each second of seeking.
Base seek time to begin with.
Number of percents volume has to be increased/decreased by in volume_up/volume_down.
Default state for autocenter mode at start.
If enabled, currently highlighted position in the list will be always centered.
This variable defines the look of progressbar. Note that it has to be exactly two or three characters long.
If set to "playlist", Search engine will perform searching in current MPD playlist rather than in music database.
Default user interface used by ncmpcpp at start.
If enabled, there will be a 250ms delay between refreshing position in media library or playlist editor and fetching appropriate data from MPD. This limits data fetched from the server and is particularly useful if ncmpcpp is connected to a remote host.
Default tag type for leftmost column in media library.
Determines whether albums in media library should be split by date.
Determines whether album dates in media library should be hidden.
If set to "wrapped", going from last found position to next will take you to the first one (same goes for the first position and going to previous one), otherwise no actions will be performed.
Default pattern used by Tag editor's parser.
If enabled, header window will be displayed, otherwise hidden.
If enabled, statusbar will be displayed, otherwise hidden.
Show the "Connected to ..." message on startup
If enabled, column titles will be displayed, otherwise hidden.
If enabled, text in header window will scroll if its length is longer then actual screen width, otherwise it won't.
If enabled, cyclic scrolling is used (e.g. if you press down arrow being at the end of list, it'll take you to the beginning)
Comma separated list of lyrics fetchers.
If enabled, lyrics will be switched at song's change to currently playing one's (Note: this works only if you are viewing lyrics of item from Playlist).
If enabled, each time song changes lyrics fetcher will be automatically run in background in attempt to download lyrics for currently playing song.
If enabled, lyrics will be saved in song's directory, otherwise in ~/.lyrics. Note that it needs properly set mpd_music_dir.
If set to yes, filenames generated by ncmpcpp (with tag editor, for lyrics, artists etc.) will not contain the following characters: \?*:|
If set to yes, it will be possible to physically delete files and directories from the disk in the browser.
If set, ncmpcpp will try to get info from last.fm in language you set and if it fails, it will fall back to English. Otherwise it will use English the first time.
If set to add_remove, attempting to add files that are already in playlist will remove them. Otherwise they can be added multiple times.
Trigger for displaying in local browser files and directories that begin with '.'
If set to "previous", key_screen_switcher will switch between current and last used screen. If set to "screen1,...screenN" (a list of screens) it will switch between them in a sequence. Syntax clarification can be found in example config file.
Screen that has to be displayed at start (playlist by default).
Slave screen that has to be displayed at start (nothing by default).
If set to yes, slave screen will be the active one after startup. Otherwise master screen will be.
If you want to lock a screen, ncmpcpp asks for % of locked screen's width to be reserved before that and provides a default value, which is the one you can set here.
If enabled, ncmpcpp will ask for % of locked screen's width each time you want to lock a screen. If you disable that, it'll silently attempt to use default value.
If enabled, ncmpcpp will jump at start to now playing song if mpd is playing or paused.
If enabled, user will be asked if he really wants to clear the playlist after pressing key responsible for that.
If enabled, clock will display time in format hh:mm:ss, otherwise hh:mm.
If enabled, volume level will be displayed in statusbar, otherwise not.
If enabled, bitrate of currently playing song will be displayed in statusbar.
If enabled, remaining time of currently playing song will be be displayed in statusbar instead of elapsed time.
Type of currently used regular expressions.
If enabled, word "the" at the beginning of tags/filenames/sort format will be ignored while sorting items.
If enabled, diacritics in strings will be ignored while searching and filtering lists.
If enabled, fields in Search engine above "Reset" button will be blocked after successful searching, otherwise they won't.
If set to yes, mouse support will be enabled.
If enabled, mouse wheel will scroll the whole page of item list at a time, otherwise the number of lines specified by lines_scrolled variable.
Number of lines that are scrolled with mouse wheel.
Text that will be displayed, if requested tag is not set.
Separator that is placed between tags. Also interpreted by tag editor which splits input string into separate tags using it.
If enabled, tag editor will number tracks using format xx/yy (where xx is the current track and yy is total amount of all numbered tracks), not plain xx.
If enabled, media library will be sorted by modification time. Otherwise lexicographic sorting is used.
If enabled, ncmpcpp will override current window title with its own one.
Number of default mode used in search engine.
Path to external editor used to edit lyrics.
If your external editor is console application, you need to enable it.
No need to describe it, huh?
Color of empty tag marker.
Color of header window.
Color of volume state.
Color of lines separating header and statusbar from main window.
Color of MPD status flags.
Color of main window.
One of colors used in Song info, Tiny tag editor and Search engine.
One of colors used in Song info, Tiny tag editor and Search engine.
Color of progressbar.
Color of part of progressbar that represents elapsed time.
Color of statusbar.
Color of current track time shown in statusbar.
Color of player state shown in statusbar.
Color of separators used in alternative user interface.
Border color of pop-up windows. If set to 'none', no border will be shown.
Color of active window's border.

BINDINGS

When ncmpcpp starts, it tries to read bindings from $XDG_CONFIG_HOME/ncmpcpp/bindings and ~/.ncmpcpp/bindings files. If no bindings file is found, ncmpcpp uses the defaults. An example bindings file with default values can be found usually in /usr/share/doc/ncmpcpp (the exact location may depend on your operating system or configure prefix).

You can view current keybindings by pressing F1.

SONG FORMAT

For song format you can use:


%l - length
%f - filename
%D - directory
%a - artist
%A - album artist
%t - title
%b - album
%y - date
%n - track number (01/12 -> 01)
%N - full track info (01/12 -> 01/12)
%g - genre
%c - composer
%p - performer
%d - disc
%C - comment
%P - priority
$R - begin right alignment

You can also put them in { } and then they will be displayed only if all requested values are available and/or define alternate value with { }|{ } e.g. {%a - %t}|{%f} will check if artist and title tags are available and if they are, display them. Otherwise it'll display filename.

Note: If you want to set limit on maximal length of a tag, just put the appropriate number between % and character that defines tag type, e.g. to make album take max. 20 terminal cells, use '%20b'.

Note: Format that is similar to "%a - %t" (i.e. without any additional braces) is equal to "{%a - %t}", so if one of the tags is missing, you'll get nothing.

Text can have different color than the main window, e.g. if you want length to be green, write $3%l$9.

Available values for colors:


- 0 - default window color (discards all other colors)
- 1 - black
- 2 - red
- 3 - green
- 4 - yellow
- 5 - blue
- 6 - magenta
- 7 - cyan
- 8 - white
- 9 - end of current color

Note: colors can be nested, so if you write $2some$5text$9, it'll disable only usage of blue color and make red the current one.

BUGS

Report bugs on https://github.com/arybczak/ncmpcpp/issues

NOTE

Since MPD uses UTF-8, ncmpcpp needs to convert characters to the charset used by the local system. If you get character conversion errors while you are running ncmpcpp, you probably need to set up your locale. This is done by setting LANG and LC_ALL/LC_CTYPE environment variables (LC_CTYPE only affects character handling).

HOMEPAGE

-> http://rybczak.net/ncmpcpp

SEE ALSO

mpc(1), mpd(1)