diff --git a/.local/bin/xmonconf b/.local/bin/xmonconf index 1e9bcc9..73d9938 100755 --- a/.local/bin/xmonconf +++ b/.local/bin/xmonconf @@ -363,7 +363,13 @@ main() { profile_found=true fi - monitor_array=(DP-3-3 eDP-1 DP-3-1) + monitors=( + "DP-3-3,eDP-1,DP-3-1" + "DP-1-3,eDP-1,DP-1-1" + ) + + for monitor in "${monitors[@]}"; do + IFS=',' read -r -a monitor_array <<<"$monitor" if monitors_exist "${monitor_array[@]}" >/dev/null; then xrandr \ --output "${monitor_array[0]}" --mode 3440x1440 --pos 0x480 --rotate normal \ @@ -371,6 +377,7 @@ main() { --output "${monitor_array[2]}" --mode 1920x1200 --pos 5360x0 --rotate right profile_found=true fi + done fi if ! "$profile_found"; then