summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2011-12-26 20:13:01 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2011-12-26 20:13:01 +0100
commit12cdede0499c4085a99b0bf0c64a4abd9f76f6d1 (patch)
tree7aa571316e277c87497288f477dc259e1e9dd1b4 /src/settings.cpp
parent955e23c27012affa30c40235c241a26fd675f47d (diff)
settings: make characters used in visualizer customizable
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 3c59f108..ecb66934 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -375,6 +375,7 @@ void NcmpcppConfig::SetDefaults()
new_header_second_line = "{{{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}}";
browser_playlist_prefix << clRed << "(playlist)" << clEnd << ' ';
progressbar = U("=>\0");
+ visualizer_chars = U("◆│");
pattern = "%n - %t";
selected_item_prefix << clMagenta;
selected_item_suffix << clEnd;
@@ -907,6 +908,16 @@ void NcmpcppConfig::Read()
// if two characters were specified, add third one as null
progressbar.resize(3);
}
+ else if (name == "visualizer_look")
+ {
+ std::basic_string<my_char_t> vc = TO_WSTRING(v);
+ if (vc.length() != 2)
+ {
+ std::cerr << "Warning: length of visualizer_look should be 2, but it's " << vc.length() << ", discarding.\n";
+ }
+ else
+ visualizer_chars = vc;
+ }
else if (name == "default_tag_editor_pattern")
{
if (!v.empty())