#!/usr/bin/env bash

# Kill any existing polybar
killall -q polybar

# Wait until it fully closes
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

# Launch Polybar on your display
polybar mybar -r &

