summaryrefslogtreecommitdiffstats
path: root/polybar/.local/bin/polybar-launch
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-04-27 17:36:37 -0400
committerAmin Bandali <amin@aminb.org>2017-04-27 17:36:37 -0400
commite0dcd28c0d4e24351e54ec34d7a25fe233ba6b68 (patch)
treed8972661ff8393eb148fe163265f05862df5f56a /polybar/.local/bin/polybar-launch
parent3e303e20740e2b1ec0328fbfeca60e4b2244781c (diff)
downloadconfigs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.tar.gz
configs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.tar.xz
configs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.zip
Add mail module for polybar (uses notmuch)
also depends: pacaur -S ttf-font-awesome
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..."