From a71430f12e5c522c4f67c96469cc8df2b5fdcd06 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 26 Apr 2024 10:07:02 +0200 Subject: [PATCH] Add additional monitor name configurations --- .local/bin/xmonconf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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