aboutsummaryrefslogtreecommitdiff
path: root/.scripts/polystart
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-24 22:11:53 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-24 22:11:53 +0530
commit2e3d99acd413c663c489312daadd3197fd558c15 (patch)
tree0cde01bf67654c9d618ad5194b747e7e845e2e8c /.scripts/polystart
parent501dc534acbac707998020343bca7a2af3c635ca (diff)
made polystart better
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