#!/usr/bin/env bash while [ "$(pidof polybar)" ]; do pkill polybar && sleep 0.5 echo "Bars stopped..." done