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" &