From 15dc3c709fb7138f3402f872634a2e3d0dc9bd60 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Fri, 1 Nov 2019 18:36:07 +0000 Subject: [PATCH] Removed debugging messages --- bar.sh | 21 ++++++++++++--------- dwmbar | 3 +-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/bar.sh b/bar.sh index 1955ee7..0614c09 100755 --- a/bar.sh +++ b/bar.sh @@ -51,15 +51,18 @@ run_module() run() { - for module in $MODULES; do - pgrep $module &> /dev/null - notrunning=$([[ $? -eq 1 ]]) - if $notrunning && [[ $INTERNET -eq 0 ]]; then - run_module $module - elif $notrunning && [[ $INTERNET -eq 1 ]]; then - [[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module - fi - done + # for module in $MODULES; do + # pgrep $module &> /dev/null + # notrunning=$([[ $? -eq 1 ]]) + # if $notrunning && [[ $INTERNET -eq 0 ]]; then + # run_module $module + # elif $notrunning && [[ $INTERNET -eq 1 ]]; then + # [[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module + # fi + # done + + parallel $MODULES_DIR{} ::: $MODULES + get_bar sleep $DELAY; } diff --git a/dwmbar b/dwmbar index 166c4ad..dcb65e0 100755 --- a/dwmbar +++ b/dwmbar @@ -87,6 +87,5 @@ while :; do INTERNET=1 fi fi - xsetroot -name "$INTERNET $(exec $DEFAULT_BAR_LOCATION)" - # xsetroot -name "$INTERNET" + xsetroot -name "$(exec $DEFAULT_BAR_LOCATION)" done