summaryrefslogtreecommitdiff
path: root/polybar/.config/polybar/launch.sh
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2019-12-02 12:21:04 +0000
committerShubham Saini <shubham6405@gmail.com>2019-12-02 12:21:04 +0000
commita42df546ce34429759a20bc2c4c240de045dbd0a (patch)
tree4e7153d41d6a1b710f8002f2eb7b64231889b6cf /polybar/.config/polybar/launch.sh
using stow
Diffstat (limited to 'polybar/.config/polybar/launch.sh')
-rwxr-xr-xpolybar/.config/polybar/launch.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh
new file mode 100755
index 0000000..c39a374
--- /dev/null
+++ b/polybar/.config/polybar/launch.sh
@@ -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..."