summaryrefslogtreecommitdiff
path: root/.config/i3/polybar.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/polybar.sh')
-rwxr-xr-x.config/i3/polybar.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/i3/polybar.sh b/.config/i3/polybar.sh
new file mode 100755
index 0000000..40a23f8
--- /dev/null
+++ b/.config/i3/polybar.sh
@@ -0,0 +1,10 @@
+#!/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 0.1; done
+
+# Launch polybar
+polybar --config="/home/hydrogen/.config/polybar/config.ini" top &