From: Siraaj Khandkar Date: Tue, 5 Mar 2019 13:53:10 +0000 (-0500) Subject: Do not show mpd song X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=ac29496989cd22e4b71e17532391b9d9344e6df6;p=khatus.git Do not show mpd song --- diff --git a/x2/src/awk/exe/bar.awk b/x2/src/awk/exe/bar.awk index adf09b4..c6fd9ef 100644 --- a/x2/src/awk/exe/bar.awk +++ b/x2/src/awk/exe/bar.awk @@ -241,11 +241,11 @@ function bar_make_status_mpd( state, status) { function bar_make_status_mpd_state_known(symbol, s, song, time, percentage) { s = "khatus_sensor_mpd" - song = cache_get_fmt_def(s, "song" , 5, "%s", "?") + #song = cache_get_fmt_def(s, "song" , 5, "%s", "?") time = cache_get_fmt_def(s, "play_time_minimal_units", 5, "%s", "?") percent = cache_get_fmt_def(s, "play_time_percentage" , 5, "%s", "?") - song = substr(song, 1, Opt_Mpd_Song_Max_Chars) - return sprintf("%s %s %s %s", symbol, time, percent, song) + #song = substr(song, 1, Opt_Mpd_Song_Max_Chars) + return sprintf("%s %s %s", symbol, time, percent) } # -----------------------------------------------------------------------------