From d97d55f3785be45c3c6f46f6ef7c95462877d5d1 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Tue, 1 Oct 2024 20:13:56 -0700 Subject: [PATCH] Update .config/polybar/launch.sh --- dot_config/polybar/executable_launch.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dot_config/polybar/executable_launch.sh b/dot_config/polybar/executable_launch.sh index 4804e8d..0ae355a 100644 --- a/dot_config/polybar/executable_launch.sh +++ b/dot_config/polybar/executable_launch.sh @@ -20,7 +20,13 @@ launch_bar() else if type "xrandr" &>/dev/null; then for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do - MONITOR=$m polybar -q main -c "$dir/$style/config.ini" & + bar="main" + + if [[ "$m" == "DP-0" ]]; then + bar="tray" + fi + + MONITOR=$m polybar -q "$bar" -c "$dir/$style/config.ini" & done else polybar -q main -c "$dir/$style/config.ini" &