Add additional monitor name configurations

This commit is contained in:
dabruh 2024-04-26 10:07:02 +02:00
parent 7128f6c74e
commit a71430f12e
1 changed files with 8 additions and 1 deletions

View File

@ -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