Removed debugging messages

This commit is contained in:
Archie Hilton (thytom) 2019-11-01 18:36:07 +00:00
parent 1ee52f23d3
commit 15dc3c709f
2 changed files with 13 additions and 11 deletions

21
bar.sh
View file

@ -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;
}

3
dwmbar
View file

@ -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