wmstatus: nicer MPD player status chars

This commit is contained in:
Přemysl Eric Janouch 2017-01-03 17:09:48 +01:00
parent 5fdeaa3531
commit 833ef8fe97
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -1532,12 +1532,14 @@ mpd_on_info_response (const struct mpd_response *response,
const char *value;
if ((value = str_map_find (&map, "state")))
{
// Unicode approximates since in proportional fonts ASCII looks ugly
// and I don't want to depend on a particular font with player chars
if (!strcmp (value, "stop"))
ctx->mpd_status = xstrdup ("MPD stopped");
else if (!strcmp (value, "pause"))
str_append (&s, "|| ");
str_append (&s, "▯▯ " /* "|| " */);
else
str_append (&s, "|> ");
str_append (&s, "" /* "|> " */);
}
if ((value = str_map_find (&map, "title"))