pgrep is a little slow, slower than ps | grep
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
while ps ax | grep -q "\spolybar$"; do sleep 1; done
|
||||
|
||||
for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user