Skip to content

Instantly share code, notes, and snippets.

@jmcblane
Created April 16, 2019 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmcblane/5b656b632c910ead12f82c8181942dfe to your computer and use it in GitHub Desktop.
Save jmcblane/5b656b632c910ead12f82c8181942dfe to your computer and use it in GitHub Desktop.
#!/bin/bash
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch Polybar, using default config location ~/.config/polybar/config
polybar -r onebar &
echo "Polybar launched..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment