X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus;h=95bd5170ba05e71f17154a9b9ea2f2bf94e3fb10;hb=cf7cff1c7647112c30989405661d0b576a13ed62;hp=8ae2039d21fc4a170972d9e4b2bf86811621d3f5;hpb=44cfa7391a5fae70f27dea3b4f0d386417d0c21f;p=khatus.git diff --git a/bin/khatus b/bin/khatus index 8ae2039..95bd517 100755 --- a/bin/khatus +++ b/bin/khatus @@ -92,7 +92,6 @@ main() { ["--file_pipe"]=$(mktemp) ["--weather_station_id"]='KJFK' ["--screen_brightness_device_name"]='acpi_video0' - ["--net_interfaces_to_show"]='' # comma-separated ["--wifi_interface"]='' ["--disk_space_device"]='/' ["--disk_io_device"]='sda' @@ -188,6 +187,7 @@ main() { cmd_sens_memory="khatus_sensor_memory $bin" fork_watcher "$pipe" "$bin" "khatus_sensor_energy $bin" + fork_watcher "$pipe" "$bin" "khatus_sensor_devices $bin" fork_poller "${opts['--interval_datetime']}" "$perf" "$pipe" "$bin" khatus_sensor_datetime fork_poller "${opts['--interval_brightness']}" "$perf" "$pipe" "$bin" "$cmd_sens_screen_brightness" fork_poller "${opts['--interval_weather']}" "$perf" "$pipe" "$bin" "$cmd_sens_weather" @@ -203,23 +203,7 @@ main() { fork_poller "${opts['--interval_fan']}" "$perf" "$pipe" "$bin" "$cmd_sens_fan" fork_poller "${opts['--interval_mem']}" "$perf" "$pipe" "$bin" "$cmd_sens_memory" - stdbuf -o L tail -f "$pipe" \ - | stdbuf -o L tee \ - >(stdbuf -o L "$bin"/khatus_bar \ - -F "$MSG_FS" \ - -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 \ - | "$bin"/khatus_actuate_alert_to_notify_send \ - ) \ - >(stdbuf -o L "$bin"/khatus_monitor_errors \ - | "$bin"/khatus_actuate_alert_to_notify_send \ - ) \ - > /dev/null - + stdbuf -o L tail -f "$pipe" } main $@