#!/bin/bash

# Terminate already running bar instances
killall -q polybar
# If all your bars have ipc enabled, you can also use 
# polybar-msg cmd quit

# Launch Polybar, using default config location ~/.config/polybar/config
polybar workspace 2>&1 | tee -a /tmp/polybar.log & disown
polybar system 2>&1 | tee -a /tmp/polybar.log & disown
polybar power 2>&1 | tee -a /tmp/polybar.log & disown

echo "Polybar launched..."
