| #!/bin/bash | |
| # Use at your own risk! | |
| readarray OUTPUTS < <( LC_ALL=C xrandr | sed -n 's/ connected.*$//p' ) | |
| MAINSCREEN="${OUTPUTS[0]//[$'\t\r\n ']}" | |
| xrandr --newmode "2560x1440_50.00" 256.09 2560 2728 3008 3456 1440 1441 1444 1482 -HSync +Vsync | |
| xrandr --addmode "${MAINSCREEN}" 2560x1440_50.00 | |
| xrandr --output "${MAINSCREEN}" --mode 2560x1440_50.00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment