From 080365dd22b967274833f50a5cd0cccc0790a658 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 11 Apr 2020 10:03:33 -0400 Subject: pgrep is a little slow, slower than ps | grep --- .local/bin/launch_polybar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/launch_polybar') diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar index 291d183..0af1579 100755 --- a/.local/bin/launch_polybar +++ b/.local/bin/launch_polybar @@ -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 -- cgit v1.3.1