summaryrefslogtreecommitdiff
path: root/.config/polybar/launch
diff options
context:
space:
mode:
authoradamstuck <adam.moloney.stuck@gmail.com>2022-03-09 10:13:26 +0100
committeradamstuck <adam.moloney.stuck@gmail.com>2022-03-09 10:13:26 +0100
commit83f36f983921a8aa72141778db8454c7b1d3cbe5 (patch)
tree8dfc245410e544ff22da9eb5c107b6d4a43da2d1 /.config/polybar/launch
parent20f66cc8323c3bc0213e934f5920ab48570c112e (diff)
polybar: auto multiple screen
Diffstat (limited to '.config/polybar/launch')
-rwxr-xr-x.config/polybar/launch12
1 files changed, 8 insertions, 4 deletions
diff --git a/.config/polybar/launch b/.config/polybar/launch
index 68d5cf2..cf23f0b 100755
--- a/.config/polybar/launch
+++ b/.config/polybar/launch
@@ -5,7 +5,11 @@ killall -q polybar
# If all your bars have ipc enabled, you can also use
# polybar-msg cmd quit
-# Launch bar1
-echo "---" | tee -a /tmp/polybar1.log
-polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
-echo "Bar launched..."
+# # Launch bar1
+# echo "---" | tee -a /tmp/polybar1.log
+# polybar bar1 2>&1 | tee -a /tmp/polybar1.log & disown
+# echo "Bar launched..."
+
+for m in $(polybar --list-monitors | cut -d":" -f1); do
+ MONITOR=$m polybar --reload bar1 &
+done