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