aboutsummaryrefslogtreecommitdiffstats
path: root/i3wm/.config/polybar/launch.sh
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2018-09-03 19:56:45 +0700
committerPeter Son Struschka <me@peter-struschka.com>2018-09-03 19:56:45 +0700
commitca8a975fedacf1b1db0aaceafbd941c4c482a86e (patch)
treea6eba27cfa450da1afb2da703fb4abba3ea7c547 /i3wm/.config/polybar/launch.sh
parentdf01da0b697f9bba8d1b8c1f8fcf65983539a74b (diff)
downloaddotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.tar.gz
dotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.tar.bz2
dotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.tar.lz
dotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.tar.xz
dotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.tar.zst
dotfiles-ca8a975fedacf1b1db0aaceafbd941c4c482a86e.zip
Added i3wm config
Diffstat (limited to 'i3wm/.config/polybar/launch.sh')
-rwxr-xr-xi3wm/.config/polybar/launch.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/i3wm/.config/polybar/launch.sh b/i3wm/.config/polybar/launch.sh
new file mode 100755
index 0000000..0b2f2d9
--- /dev/null
+++ b/i3wm/.config/polybar/launch.sh
@@ -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 -u $UID -x polybar >/dev/null; do sleep 1; done
+
+# Launch bar1 and bar2
+polybar topbar &
+
+echo "Bars launched..."