Show only left speaker volume
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 5 Mar 2019 13:32:36 +0000 (08:32 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 5 Mar 2019 13:32:36 +0000 (08:32 -0500)
x2/src/awk/exe/bar.awk

index 6fd5a93..adf09b4 100644 (file)
@@ -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
 }
This page took 0.030075 seconds and 4 git commands to generate.