changing volume color from bad to degraded if muted
This commit is contained in:
parent
0a608d4af6
commit
6147e2b268
@ -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)
|
if ((err = snd_mixer_selem_get_playback_switch(hdl->elem, 0, &pbval)) < 0)
|
||||||
fprintf (stderr, "i3status: ALSA: playback_switch: %s\n", snd_strerror(err));
|
fprintf (stderr, "i3status: ALSA: playback_switch: %s\n", snd_strerror(err));
|
||||||
if (!pbval) {
|
if (!pbval) {
|
||||||
START_COLOR("color_bad");
|
START_COLOR("color_degraded");
|
||||||
avg = 0;
|
avg = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user