summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/polybar-launch11
1 files changed, 8 insertions, 3 deletions
diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch
index 952950d..7dfde7a 100755
--- a/.local/bin/polybar-launch
+++ b/.local/bin/polybar-launch
@@ -1,7 +1,12 @@
-#!/bin/bash
+#!/bin/sh
-killall -q polybar
+polybar-msg cmd quit
for m in $(polybar --list-monitors | cut -d":" -f1); do
- MONITOR=$m polybar --reload bar1 &
+ MONITOR=$m
+ LOG_FILE="/tmp/polybar.$m.log"
+ echo "---" >> $LOG_FILE
+ polybar bar1 >> $LOG_FILE 2>&1 & disown
done
+
+echo "Bars launched..."