How to change resolution on login screen

What about an Xsetup script like here:

For sure, you’ll always use mon1 (should be mon1= eDP-1), you could even simplify the script, anyway, maybe the xrandr --auto could help…