#!/usr/bin/env bash

HARDCODE_USER=shadow8t4

# Terminate already running bar instances
killall polybar

# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

# Launch polybar
polybar main -c /home/$HARDCODE_USER/.config/polybar/config &
