From 639443cabedf90fdb75126e16d2e01e88b956b05 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Sep 2017 09:23:38 +0200 Subject: [PATCH] doc/ncmpc.1: update connection setup, add local socket --- doc/ncmpc.1 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/ncmpc.1 b/doc/ncmpc.1 index da2ce42..50141d9 100644 --- a/doc/ncmpc.1 +++ b/doc/ncmpc.1 @@ -6,19 +6,20 @@ ncmpc \- curses Music Player Daemon (MPD) client. [options] .SH "DESCRIPTION" ncmpc is a client for MPD, the Music Player Daemon. -ncmpc connects to a MPD running on a machine on the local -network. -By default, ncmpc connects to localhost:6600. -This can be changed either at compile\-time, or by exporting the -MPD_HOST and MPD_PORT environment variables, or by the command line -options \-\-host and \-\-port. +By default, ncmpc connects to the local MPD instance. A different MPD +instance can be selected using the command line options \-\-host and +\-\-port, or by setting the environment variables MPD_HOST and MPD_PORT. $ ncmpc \-\-host=musicserver \-\-port=44000 +You can connect to a "local" socket by setting the host to a file path +(e.g. "/run/mpd/socket"). Abstract sockets can be used with a "@" +prefix (e.g. "@mpd"). + To use a password with mpd, set MPD_HOST to password@host or use the command line option \-\-password. Values from -the command line overrides values from the environment. +the command line override values from the environment. Read more about MPD on http://www.musicpd.org -- 2.30.2