From d8f0865799d3641a2f458f8025ef788cc7d7c518 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 13 Apr 2020 11:49:40 -0400 Subject: actually, just use pidof --- .local/bin/launch_polybar | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.local/bin/launch_polybar') diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar index 0af1579..8786be6 100755 --- a/.local/bin/launch_polybar +++ b/.local/bin/launch_polybar @@ -4,8 +4,6 @@ killall -q polybar # Wait until the processes have been shut down -while ps ax | grep -q "\spolybar$"; do sleep 1; done +while pidof polybar >/dev/null; do sleep 1; done for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done - -echo "Bars launched..." -- cgit v1.3.1