mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Removed debugging messages
This commit is contained in:
parent
1ee52f23d3
commit
15dc3c709f
2 changed files with 13 additions and 11 deletions
21
bar.sh
21
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;
|
||||
}
|
||||
|
|
3
dwmbar
3
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
|
||||
|
|
Loading…
Reference in a new issue