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_polybar4
1 files changed, 1 insertions, 3 deletions
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..."