summaryrefslogtreecommitdiffstats
path: root/.local/bin/launch_polybar
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-11 10:03:33 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-11 10:03:33 -0400
commit080365dd22b967274833f50a5cd0cccc0790a658 (patch)
treeac187a4c8e8d29a34092e64ed0650d6c79ee35bc /.local/bin/launch_polybar
parent7b9277ae0b061af6890786a9149b7e26aa380e2b (diff)
downloadeibhear-080365dd22b967274833f50a5cd0cccc0790a658.tar.gz
eibhear-080365dd22b967274833f50a5cd0cccc0790a658.tar.zst
eibhear-080365dd22b967274833f50a5cd0cccc0790a658.zip
pgrep is a little slow, slower than ps | grep
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