You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
268 B

4 years ago
  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 DP-1 & polybar DP-2 &
  8. echo "Bars launched..."