launch.sh 501 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # Terminate already running bar instances
  3. # If all your bars have ipc enabled, you can use
  4. # polybar-msg cmd quit
  5. # Otherwise you can use the nuclear option:
  6. killall -q polybar
  7. # Launch bar1 and bar2
  8. echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
  9. # polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
  10. # polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
  11. polybar -c $HOME/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar2.log & disown
  12. echo "Bars launched..."