launch.sh 251 B

123456789101112
  1. #!/usr/bin/env sh
  2. # Terminate already running bar instances
  3. killall -q polybar
  4. # Wait until the processes have been shut down
  5. while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
  6. # Launch bar1 and bar2
  7. polybar dp2 &
  8. echo "Bars launched..."