summaryrefslogtreecommitdiff
path: root/polybar/.config/polybar/launch
diff options
context:
space:
mode:
Diffstat (limited to 'polybar/.config/polybar/launch')
-rwxr-xr-xpolybar/.config/polybar/launch12
1 files changed, 12 insertions, 0 deletions
diff --git a/polybar/.config/polybar/launch b/polybar/.config/polybar/launch
new file mode 100755
index 0000000..c39a374
--- /dev/null
+++ b/polybar/.config/polybar/launch
@@ -0,0 +1,12 @@
1#!/usr/bin/env bash
2
3# Terminate already running bar instances
4killall -q polybar
5
6# Wait until the processes have been shut down
7while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
8
9# Launch bar1 and bar2
10polybar top &
11
12echo "Bars launched..."