aboutsummaryrefslogtreecommitdiff
path: root/.scripts/polystart
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/polystart')
-rwxr-xr-x.scripts/polystart9
1 files changed, 8 insertions, 1 deletions
diff --git a/.scripts/polystart b/.scripts/polystart
index b35dda1..9534ad8 100755
--- a/.scripts/polystart
+++ b/.scripts/polystart
@@ -1,4 +1,11 @@
#!/bin/sh
killall polybar
-polybar mybar & polybar mybar2
+
+for m in $(xrandr --listmonitors | grep '+' | awk {'print $4'}); do
+ if [[ $m = "HDMI-0" ]]; then
+ MONITOR=$m polybar mybar2 &
+ else
+ MONITOR=$m polybar mybar &
+ fi
+done