aboutsummaryrefslogtreecommitdiffstats
path: root/i3wm/.config/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3wm/.config/polybar/launch.sh')
-rwxr-xr-xi3wm/.config/polybar/launch.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/i3wm/.config/polybar/launch.sh b/i3wm/.config/polybar/launch.sh
new file mode 100755
index 0000000..0b2f2d9
--- /dev/null
+++ b/i3wm/.config/polybar/launch.sh
@@ -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 -u $UID -x polybar >/dev/null; do sleep 1; done
+
+# Launch bar1 and bar2
+polybar topbar &
+
+echo "Bars launched..."