summaryrefslogtreecommitdiffstats
path: root/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'polybar/launch.sh')
-rwxr-xr-xpolybar/launch.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/polybar/launch.sh b/polybar/launch.sh
new file mode 100755
index 0000000..822de9c
--- /dev/null
+++ b/polybar/launch.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+# Terminate already running bar instances
+killall -q polybar
+# If all your bars have ipc enabled, you can also use
+# polybar-msg cmd quit
+
+# Launch bar1 and bar2
+#echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
+#polybar example >>/tmp/polybar1.log 2>&1 &
+for m in $(polybar --list-monitors | cut -d":" -f1); do
+ MONITOR=$m polybar --reload example &
+done
+
+echo "Bars launched..."