summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/launch_polybar12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar
new file mode 100755
index 0000000..ea383cc
--- /dev/null
+++ b/.local/bin/launch_polybar
@@ -0,0 +1,12 @@
+#!/bin/bash
+#!/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 1; done
+
+for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar example -c ~/.config/polybar/config & done
+
+echo "Bars launched..."