preview.sh 372 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. DIR="$HOME/.config/polybar/shades"
  3. # Terminate already running bar instances
  4. killall -q polybar
  5. # Wait until the processes have been shut down
  6. while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
  7. # Launch the preview bar
  8. polybar -q top -c "$DIR"/preview.ini &
  9. polybar -q mid -c "$DIR"/preview.ini &
  10. polybar -q bottom -c "$DIR"/preview.ini &