X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus;h=87b137a35291e074a64348729401f0a03eee47b2;hb=224be98a3467adc3171247eeaf9df8a37b76c062;hp=8c6786921cbdfdf24518c935f8b56228822edb17;hpb=e3f715dd971f608a41471534fd1ecd46a60b80a8;p=khatus.git diff --git a/bin/khatus b/bin/khatus index 8c67869..87b137a 100755 --- a/bin/khatus +++ b/bin/khatus @@ -87,7 +87,6 @@ fork_poller() { main() { declare -A opts=( - ["--debug"]=0 ["--dir_bin"]="$HOME/bin" ["--dir_perf_logs"]='' ["--file_pipe"]=$(mktemp) @@ -126,11 +125,7 @@ main() { * ) if [ -v opts["$key"] ] then - if [ "$key" == "--debug" ] - then - opts["$key"]=1 - shift - elif [ "$val" != "" ] + if [ "$val" != "" ] then opts["$key"]="$val" shift @@ -212,10 +207,9 @@ main() { | stdbuf -o L tee \ >(stdbuf -o L "$bin"/khatus_bar \ -F "$MSG_FS" \ - -v opt_debug=""${opts['--debug']}"" \ - -v opt_mpd_song_max_chars=10 \ - -v opt_net_interfaces_to_show="${opts['--net_interfaces_to_show']}" \ - -v opt_pulseaudio_sink="${opts['--pulseaudio_sink']}" \ + -v Opt_Mpd_Song_Max_Chars=10 \ + -v Opt_Net_Interfaces_To_Show="${opts['--net_interfaces_to_show']}" \ + -v Opt_Pulseaudio_Sink="${opts['--pulseaudio_sink']}" \ | "$bin"/khatus_actuate_status_bar_to_xsetroot_name \ ) \ >(stdbuf -o L "$bin"/khatus_monitor_energy \