fix resolution ordering

This commit is contained in:
Chris Titus 2024-08-29 16:04:21 -05:00
parent 72c0a750e9
commit 7a2c22861d

View File

@ -38,7 +38,7 @@ set_resolutions() {
fi fi
monitor_name="${monitor_array[monitor_choice - 1]}" monitor_name="${monitor_array[monitor_choice - 1]}"
resolutions=$(get_unique_resolutions "$monitor_name") resolutions=$(get_unique_resolutions "$monitor_name" | sort -rn -t'x' -k1,1 -k2,2)
# Create a temporary file with resolutions and indices # Create a temporary file with resolutions and indices
temp_res_file=$(mktemp) temp_res_file=$(mktemp)