aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-03 17:09:48 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-03 17:32:36 +0100
commit833ef8fe97dd4e0b14e18c523bccee6b4a52096e (patch)
tree8ee84416605acee21e53fb5eaca62ea24e942bbc
parent5fdeaa35316ae3a5acc7c78d9df53d801d68f015 (diff)
downloaddesktop-tools-833ef8fe97dd4e0b14e18c523bccee6b4a52096e.tar.gz
desktop-tools-833ef8fe97dd4e0b14e18c523bccee6b4a52096e.tar.xz
desktop-tools-833ef8fe97dd4e0b14e18c523bccee6b4a52096e.zip
wmstatus: nicer MPD player status chars
-rw-r--r--wmstatus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wmstatus.c b/wmstatus.c
index 1216b85..6e2e582 100644
--- a/wmstatus.c
+++ b/wmstatus.c
@@ -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"))