summaryrefslogtreecommitdiff
path: root/.local/bin/polybar-launch
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-09-13 08:51:41 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-09-13 08:51:41 +0200
commit3148f6a3ba3fe491ba661dea368a3c574e6845b4 (patch)
treec2493654383f6ba4b5805e68b8f72833dc32e87d /.local/bin/polybar-launch
parent9a93a2b8b2de9e245407da876929029bc3016d85 (diff)
polybar: nicer launch script
Diffstat (limited to '.local/bin/polybar-launch')
-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..."