diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 11:49:40 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 11:49:40 -0400 |
| commit | d8f0865799d3641a2f458f8025ef788cc7d7c518 (patch) | |
| tree | 90a661612bbee37c60bcbaa41e2c923fa7f873b2 /.local/bin/launch_polybar | |
| parent | 3e88424b5dc92b34c1cf325a7af5c96e5180e774 (diff) | |
| download | eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.tar.gz eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.tar.zst eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.zip | |
actually, just use pidof
Diffstat (limited to '.local/bin/launch_polybar')
| -rwxr-xr-x | .local/bin/launch_polybar | 4 |
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..." |
