]> git.sur5r.net Git - i3/i3status/commitdiff
changing volume color from bad to degraded if muted
authorGereon Kremer <gereon.kremer@rwth-aachen.de>
Sat, 22 Dec 2012 18:06:53 +0000 (19:06 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 5 Jan 2013 07:37:20 +0000 (08:37 +0100)
src/print_volume.c

index 080dea2a4c01f9312ba8a766c462d5d430ca1983..cf42f3e98aed404fc5f7a8bf0fbed1d2dbfa9e9f 100644 (file)
@@ -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;
                }
        }