Archlinux basic installation configuration scripts
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.

15 lines
365 B

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