#!/usr/bin/env bash # Terminate already running bar instances # killall -q polybar fc-cache -fv # If all your bars have ipc enabled, you can also use polybar-msg cmd quit # Launch bar # Launch bar1 and bar2 echo "---" | tee -a /tmp/polybar.top.log polybar top 2>&1 | tee -a /tmp/polybar.top.log & disown echo "Bar launched..."