summaryrefslogtreecommitdiffstats
path: root/.local/bin/launch_polybar
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/launch_polybar')
-rwxr-xr-x.local/bin/launch_polybar2
1 files changed, 1 insertions, 1 deletions
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