X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x2%2Fsrc%2Fawk%2Fexe%2Fbar.awk;h=48e00f24216f960feadd0a6df018858a95352825;hp=1868f0e96bc63eac4915eab2398d10a263dcf0f4;hb=c7a86f0fb9cf5678537f4427958ee685885683e5;hpb=e05c10ea70078771831aeb19ce9b01a730c26996 diff --git a/x2/src/awk/exe/bar.awk b/x2/src/awk/exe/bar.awk index 1868f0e..48e00f2 100644 --- a/x2/src/awk/exe/bar.awk +++ b/x2/src/awk/exe/bar.awk @@ -220,10 +220,10 @@ function bar_make_status_backlight_percent( src) { # Volume # ----------------------------------------------------------------------------- -function bar_make_status_volume_alsa_device(device, m, l, r, show) { - cache_get(m, "khatus_sensor_volume", "mute" Kfs device, 5) - cache_get(l, "khatus_sensor_volume", "vol_left" Kfs device, 5) - cache_get(r, "khatus_sensor_volume", "vol_right" Kfs device, 5) +function bar_make_status_volume( m, l, r, show) { + cache_get(m, "khatus_sensor_volume", "mute" , 5) + cache_get(l, "khatus_sensor_volume", "vol_left" , 5) + cache_get(r, "khatus_sensor_volume", "vol_right" , 5) show = "--" if (!m["is_expired"] && !l["is_expired"] && !r["is_expired"]) { if (m["value"] == "yes") @@ -232,7 +232,7 @@ function bar_make_status_volume_alsa_device(device, m, l, r, show) { show = l["value"] #" " r["value"] else msg_out_log_error(\ - "bar_make_status_volume_alsa_device: " device ". ", \ + "bar_make_status_volume", \ "Unexpected value for 'mute' field: " m["value"] \ ) }