add config options for communication mode with mpd (polling for default)

idle support in ncmpcpp is marked experimental since its support
in mpd is not ready for general use in full featured clients
(see bug 2612)
This commit is contained in:
Andrzej Rybczak
2009-12-23 16:21:11 +01:00
parent c005b7b303
commit 2fb20fd572
7 changed files with 15 additions and 1 deletions

View File

@@ -284,6 +284,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.window_border = brGreen;
conf.active_window_border = brRed;
conf.media_lib_primary_tag = MPD_TAG_ARTIST;
conf.enable_idle_notifications = false;
conf.colors_enabled = true;
conf.fancy_scrolling = true;
conf.playlist_show_remaining_time = false;
@@ -715,6 +716,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty())
conf.color2 = IntoColor(v);
}
else if (cl.find("mpd_communication_mode") != std::string::npos)
{
conf.enable_idle_notifications = v == "notifications";
}
else if (cl.find("colors_enabled") != std::string::npos)
{
conf.colors_enabled = v == "yes";