#!/usr/bin/env sh
command -v polybar || return 0

killall -q polybar

while pgrep -x polybar &>/dev/null; do sleep 0.1; done

polybar i3 &