Add mail module for polybar (uses notmuch)
[~bandali/configs] / polybar / .local / bin / polybar-launch
diff --git a/polybar/.local/bin/polybar-launch b/polybar/.local/bin/polybar-launch
new file mode 100755 (executable)
index 0000000..4fcd323
--- /dev/null
@@ -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..."