tShow single symbol instead of animation with blank mpd metadata - spoon - dwm status utility (2f30 fork)
(HTM) git clone git://src.adamsgaard.dk/spoon
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 3c6eedee86ba611a19953902f16f2c2cdddd400f
(DIR) parent 11d2344a17373aff077d0a7884a8ac8a3c7751e3
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 8 May 2020 14:01:33 +0200
Show single symbol instead of animation with blank mpd metadata
Diffstat:
M mpd.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
(DIR) diff --git a/mpd.c b/mpd.c
t@@ -6,14 +6,6 @@
#include "types.h"
#include "util.h"
-char *anim[] = {
- "!!.|.",
- "|!.!.",
- "!.!!.",
- "!!|.!",
- ".!!|!",
-};
-
int
mpdread(void *arg, char *buf, size_t len)
{
t@@ -64,7 +56,7 @@ mpdread(void *arg, char *buf, size_t len)
} else if (title != NULL) {
strlcpy(buf, title, len);
} else {
- strlcpy(buf, anim[frame++ % LEN(anim)], len);
+ strlcpy(buf, ">", 2);
}
mpd_song_free(song);
mpd_response_finish(conn);