From: Siraaj Khandkar Date: Tue, 5 Mar 2019 13:32:36 +0000 (-0500) Subject: Show only left speaker volume X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=774d8cd199b129348c01aaa74e364cd67bec335c;p=khatus.git Show only left speaker volume --- diff --git a/x2/src/awk/exe/bar.awk b/x2/src/awk/exe/bar.awk index 6fd5a93..adf09b4 100644 --- a/x2/src/awk/exe/bar.awk +++ b/x2/src/awk/exe/bar.awk @@ -200,14 +200,15 @@ function bar_make_status_volume_alsa_device(device, m, l, r, show) { cache_get(r, "khatus_sensor_volume", "vol_right" Kfs device, 5) show = "--" if (!m["is_expired"] && !l["is_expired"] && !r["is_expired"]) { - if (m["value"] == "yes") {show = "X"} - else if (m["value"] == "no") {show = l["value"] " " r["value"]} - else { + if (m["value"] == "yes") + show = "X" + else if (m["value"] == "no") + show = l["value"] #" " r["value"] + else msg_out_log_error(\ "bar_make_status_volume_alsa_device: " device ". ", \ "Unexpected value for 'mute' field: " m["value"] \ ) - } } return show }