aboutsummaryrefslogtreecommitdiffstats
path: root/polybar/.config/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'polybar/.config/polybar/launch.sh')
-rwxr-xr-xpolybar/.config/polybar/launch.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh
new file mode 100755
index 0000000..1ab828a
--- /dev/null
+++ b/polybar/.config/polybar/launch.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+# Terminate already running bar instances
+killall -q polybar
+
+# Wait until the processes have been shut down
+while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
+
+polybar main &
+polybar second &
+polybar third &
+
+echo "Bars launched..."