From 2e3d99acd413c663c489312daadd3197fd558c15 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 24 Oct 2023 22:11:53 +0530 Subject: made polystart better --- .scripts/polystart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.scripts/polystart') 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 -- cgit v1.2.3