summaryrefslogtreecommitdiffstats
path: root/.config/polybar/launch.sh
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2019-05-14 22:13:09 +0200
committerJokler <jokler.contact@gmail.com>2019-05-14 22:13:09 +0200
commit64b3f5883e5523e5193ba1583790cc8cfafcfe6e (patch)
tree8c604f28ede436cb2f43bd0a1c3c70d4e12461e6 /.config/polybar/launch.sh
downloaddotfiles-64b3f5883e5523e5193ba1583790cc8cfafcfe6e.tar.gz
dotfiles-64b3f5883e5523e5193ba1583790cc8cfafcfe6e.zip
Add scripts, polybar and i3 config files
Diffstat (limited to '.config/polybar/launch.sh')
-rwxr-xr-x.config/polybar/launch.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh
new file mode 100755
index 0000000..f39972f
--- /dev/null
+++ b/.config/polybar/launch.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# 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 Polybar, using default config location ~/.config/polybar/config
+polybar left &
+polybar center &
+polybar right &
+
+echo "Polybar launched..."