From: Gereon Kremer Date: Sat, 22 Dec 2012 18:06:53 +0000 (+0100) Subject: changing volume color from bad to degraded if muted X-Git-Tag: 2.7~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6147e2b268fd1ffc858453f833f443b8778bc986;p=i3%2Fi3status changing volume color from bad to degraded if muted --- diff --git a/src/print_volume.c b/src/print_volume.c index 080dea2..cf42f3e 100644 --- a/src/print_volume.c +++ b/src/print_volume.c @@ -157,7 +157,7 @@ void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char * if ((err = snd_mixer_selem_get_playback_switch(hdl->elem, 0, &pbval)) < 0) fprintf (stderr, "i3status: ALSA: playback_switch: %s\n", snd_strerror(err)); if (!pbval) { - START_COLOR("color_bad"); + START_COLOR("color_degraded"); avg = 0; } }