1#!/bin/bash
2
3# Terminate already running bar instances
4killall -q polybar
5
6# Wait until the processes have been shut down
7while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
8
9# Launch Polybar, using default config location ~/.config/polybar/config
10polybar Workspace &
11polybar Workspace2 &
12polybar Media &
13polybar SysStats &
14polybar Date &
15polybar Time &
16polybar Title &
17#polybar Primary &
18#polybar Secondary &
19#echo "Polybar launched..."